On 09/16/2014 11:18 PM, Joseph S. Myers wrote:
(That TYPE_MAIN_VARIANT maps an array of qualified type to an array of corresponding unqualified type necessitates lots of special cases in the front end to avoid applying TYPE_MAIN_VARIANT to array types, since in C terms array types are always unqualified and are unrelated to an array of corresponding unqualified element type.)
Sounds like you want a c_type_main_variant wrapper then? What exactly breaks if you ignore the problem and apply TYPE_MAIN_VARIANT to arrays?
bernd