Fix some interactions between C++11 and C++14 features and using-declarations:
* a dependent non-type using-declaration within a function template can be valid, as it can refer to an enumerator, so don't reject it in the template definition * we can partially substitute into a dependent using-declaration if it appears within a (local class in a) generic lambda within a function template, which means an UnresolvedUsing*Decl doesn't necessarily instantiate to a UsingDecl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290071 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/ASTContext.h 6 additions, 6 deletionsinclude/clang/AST/ASTContext.h
- include/clang/Sema/Sema.h 1 addition, 0 deletionsinclude/clang/Sema/Sema.h
- lib/AST/ASTContext.cpp 7 additions, 4 deletionslib/AST/ASTContext.cpp
- lib/Sema/SemaDeclCXX.cpp 41 additions, 9 deletionslib/Sema/SemaDeclCXX.cpp
- lib/Sema/SemaOverload.cpp 8 additions, 1 deletionlib/Sema/SemaOverload.cpp
- lib/Sema/SemaTemplateInstantiateDecl.cpp 27 additions, 23 deletionslib/Sema/SemaTemplateInstantiateDecl.cpp
- test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p8-cxx0x.cpp 154 additions, 4 deletions.../CXX/dcl.dcl/basic.namespace/namespace.udecl/p8-cxx0x.cpp
Loading
Please register or sign in to comment