]> granicus.if.org Git - clang/commit
Fix some interactions between C++11 and C++14 features and using-declarations:
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 18 Dec 2016 21:39:37 +0000 (21:39 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 18 Dec 2016 21:39:37 +0000 (21:39 +0000)
commitb35fdac51f5f90b06f0597465fc525f6f64a0f08
tree2e273e35e34858cd8ef934a9436bbfbf56a58304
parent7f60b40f08d9c4f13f9b5a7cbbd98468d3345100
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
include/clang/AST/ASTContext.h
include/clang/Sema/Sema.h
lib/AST/ASTContext.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p8-cxx0x.cpp