This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Questions about a constant array reference in the C++ front end
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Stefan Strasser <sstrasser at systemhaus-gruppe dot de>
- Cc: Kazu Hirata <kazu at cs dot umass dot edu>, gcc at gcc dot gnu dot org
- Date: Sun, 08 May 2005 14:30:52 +0100
- Subject: Re: Questions about a constant array reference in the C++ front end
- References: <20050508.001134.133988191.kazu@cs.umass.edu> <427E0B4B.9080301@systemhaus-gruppe.de>
Stefan Strasser wrote:
> I don't know anything about fold but in general a c++ array in the
> frontend is cv-qualified, not its elements.
this is untrue. the elements hold the qualification.
> I have been processing large source codes including STL, boost and
> custom code including function bodies and I have never seen a
> RANGE_EXPR. I suppose it's only used at later stages or only in other
> language's frontends.
Incorrect. RANGE_EXPRs get generated during processing of an array's
initializer -- very early on in the C++ FE.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk