This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TYPE_MAIN_VARIANT of arrays of qualified type


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]