On 2014-02-21 15:49, Jason Merrill wrote:
On 02/21/2014 03:19 AM, Adam Butcher wrote:
Jason Merrill wrote:
Why doesn't num_template_parameter_lists work as a predicate here?
It works in the lambda case as it is updated there, but for generic
functions I think the following prevents it:
cp/parser.c:17063:
Hmm, I wonder what that's for? What breaks when you remove it? :)
Nothing (according to the g++.dg testsuite at least). It's been there
since I started looking at GCC so I assumed that it was needed for
something. Having removed it I should be able use a
num_template_parameter_lists and template_class_depth as you suggested
to solve this issue (hopefully without the need of a scope walk).
Cheers,
Adam