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 [EMAIL PROTECTED] :: http://www.planetfall.pwp.blueyonder.co.uk