TYPE_MAIN_VARIANT of arrays of qualified type
Gabriel Dos Reis
gdr@integrable-solutions.net
Fri Jan 28 20:59:00 GMT 2005
"Joseph S. Myers" <joseph@codesourcery.com> writes:
| Should the TYPE_MAIN_VARIANT of an array of qualified element type be an
| array of unqualified element type? For example, should the
| TYPE_MAIN_VARIANT of "const char[1]" be "char[1]"?
Yes, I think that is a very consistent with the relevant standards (C
and C++) describe the way cv-qualifiers apply to arrays.
-- Gaby
More information about the Gcc
mailing list