Sema: Instantiate local class and their members appropriately
We would fail to instantiate them when the surrounding function was instantiated. Instantiate the class and add it's members to the list of pending instantiations, they should be resolved when we are finished with the function's body. This fixes PR9685. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195827 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Sema/SemaTemplate.cpp 4 additions, 1 deletionlib/Sema/SemaTemplate.cpp
- lib/Sema/SemaTemplateInstantiate.cpp 8 additions, 0 deletionslib/Sema/SemaTemplateInstantiate.cpp
- lib/Sema/SemaTemplateInstantiateDecl.cpp 35 additions, 13 deletionslib/Sema/SemaTemplateInstantiateDecl.cpp
- test/CXX/temp/temp.spec/temp.inst/p1.cpp 5 additions, 6 deletionstest/CXX/temp/temp.spec/temp.inst/p1.cpp
- test/SemaTemplate/instantiate-local-class.cpp 95 additions, 1 deletiontest/SemaTemplate/instantiate-local-class.cpp
Loading
Please register or sign in to comment