Questions about a constant array reference in the C++ front end
Nathan Sidwell
nathan@codesourcery.com
Sun May 8 14:50:00 GMT 2005
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
More information about the Gcc
mailing list