A small further tweak: let's try lookup first and when we do create a
new decl, stash it in local_specializations.
Tested x86_64-pc-linux-gnu, applying to trunk.
commit 92a208c9176551243e305e779c7aaa730cace8f5
Author: Jason Merrill
Date: Tue Jun 3 10:09:23 2014 -0400
PR c++/60992
*
On 05/02/2014 03:46 PM, Jason Merrill wrote:
My change to avoid building a dummy variable in a nested function turns
out to have been too aggressive; in this case, we have a reference to a
local const variable in the type of an array that we're capturing. It
seems safe enough to make dummy copie
My change to avoid building a dummy variable in a nested function turns
out to have been too aggressive; in this case, we have a reference to a
local const variable in the type of an array that we're capturing. It
seems safe enough to make dummy copies of const and static variables
when instan