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.
Paths
| Differential D9990
Instantiation all of local class members. ClosedPublic Authored by sepavloff on May 25 2015, 5:13 AM.
Details Summary If a function containing a local class is instantiated, instantiate This change fixes PR21332 and thus implements DR1484.
Diff Detail
Event Timelinesepavloff updated this object. Comment 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.
This revision is now accepted and ready to land.Jun 8 2015, 1:37 PM Closed by commit rL240974: Instantiation of local class members. (authored by sepavloff). · Explain WhyJun 29 2015, 10:50 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 28688 cfe/trunk/lib/Parse/ParseDeclCXX.cpp
cfe/trunk/lib/Sema/SemaTemplateInstantiate.cpp
cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
cfe/trunk/test/SemaTemplate/instantiate-local-class.cpp
|