If a function containing a local class is instantiated, instantiate
all of local class member, including default arguments and exception
specifications.
This change fixes PR21332 and thus implements DR1484.
Differential D9990
Instantiation all of local class members. sepavloff on May 25 2015, 5:13 AM. Authored by
Details If a function containing a local class is instantiated, instantiate This change fixes PR21332 and thus implements DR1484.
Diff Detail Event TimelineComment Actions Ping. Thanks, 2015-06-02 1:54 GMT+06:00 Serge Pavlov <sepavloff@gmail.com>:
Comment Actions This looks like a good start; I'm happy for you to go ahead with this as-is and deal with the local function declaration case separately if you prefer, or (since that change will require significant changes to this patch) rework this patch to deal with both cases together.
|
I don't think this is the right place for this; we should do this if we're in a local function declaration within a function definition too. Consider:
Can you do the eager instantiation in Sema::SubstParmVarDecl instead?