This is the mail archive of the gcc-patches@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: [C++0x] avoid extra tentative parse in range-based for loops


On 11/26/2010 05:20 PM, Jason Merrill wrote:

Then, what about adding somewhere? TREE_USED (range_decl) = 1; DECL_READ_P (range_decl) = 1;

Sounds good.

Replying to an old message: does __attribute__ ((__unused__)) work in this context? Or also, "for (Work : { w(), w(), w() })" could be accepted as a GCC extension.


Paolo


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