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: Questions about a constant array reference in the C++ front end


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


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