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 change the meaning of conforming code, which I don't think is the case here. For pure extensions, we prefer to use a pedwarn.

+         if (!DECL_TEMPLATE_INFO (decl) || DECL_TEMPLATE_RESULT
+             (DECL_TI_TEMPLATE (decl)) != decl)

This needs reformatting so that the arguments to a macro aren't to the left of the macro name.

Jason

Reply via email to