Re: C++ PATCHes for c++/82882, ICE with lambda in template default argument

2018-06-27 Thread Jason Merrill
On Fri, Jun 15, 2018 at 4:21 PM, Jason Merrill wrote: > This testcase was broken by the lambda rewrite. This turned out to be > because the lambda in the template's default argument had namespace > scope, while the instantiation had function scope, because of > tsubst_default_argument calling pus

C++ PATCHes for c++/82882, ICE with lambda in template default argument

2018-06-15 Thread Jason Merrill
This testcase was broken by the lambda rewrite. This turned out to be because the lambda in the template's default argument had namespace scope, while the instantiation had function scope, because of tsubst_default_argument calling push_access_scope and do_pushtag using the resulting value of curr