On 06/24/2014 07:04 PM, Adam Butcher wrote:
I've fixed these issues up in my tree and moved the test to g++.dg.

Please put it in g++.dg/template; I'd prefer not to clutter the top directory.

+      bool template_parm_lists_apply
+         = parser->num_template_parameter_lists;
+      for (cp_binding_level *s = current_binding_level; s; s = s->level_chain)
+       if (s->kind == sk_function_parms)
+         template_parm_lists_apply = false;

Let's only start walking if there are template parameters, and stop walking when we reach them.

Jason

Reply via email to