Re: [PATCH 1/3] Support lambda templates.

2013-08-13 Thread Jason Merrill
On 08/12/2013 07:52 PM, Adam Butcher wrote: Presumably with pedwarn it would need to be relaxed to simply "accepted with -std=c++1y or -std=gnu++1y" for all? Yes. flag_iso was the only thing I could find to discriminate between gnu++1y and c++1y? Right, we don't make that distinction fo

Re: [PATCH 1/3] Support lambda templates.

2013-08-12 Thread Adam Butcher
On 12.08.2013 16:47, Jason Merrill wrote: On 08/11/2013 03:49 PM, Adam Butcher wrote: + if (cxx_dialect < cxx1y || flag_iso) + cp_parser_error (parser, +"lambda templates are only available with " +"-std=gnu++1y"); Normally we only use

Re: [PATCH 1/3] Support lambda templates.

2013-08-12 Thread Jason Merrill
On 08/11/2013 03:49 PM, Adam Butcher wrote: + if (cxx_dialect < cxx1y || flag_iso) + cp_parser_error (parser, +"lambda templates are only available with " +"-std=gnu++1y"); Normally we only use flag_iso to disable extensions that can ch