This is the mail archive of the
gcc@gcc.gnu.org
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.4.61.0501281857070.2077@digraph.polyomino.org.uk>
"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