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] |
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.
I can't recall exactly. It might be for default initialization. Something like ptr = new int[100] ();
-- Stefan Strasser
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |