This is the mail archive of the
mailing list for the GCC project.
Re: TYPE_MAIN_VARIANT of arrays of qualified type
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 28 Jan 2005 20:37:18 +0100
- Subject: Re: TYPE_MAIN_VARIANT of arrays of qualified type
- Organization: Integrable Solutions
- References: <Pine.LNX.email@example.com>
"Joseph S. Myers" <firstname.lastname@example.org> 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" be "char"?
Yes, I think that is a very consistent with the relevant standards (C
and C++) describe the way cv-qualifiers apply to arrays.