summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-08-14 20:16:31 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-08-14 20:16:31 +0000
commitc58f38f2207292533b4b0fe44ec176bae10dc6ec (patch)
tree999ebdabc22a473cb5503025f8743066da61a01d /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
parentdbd65779649eb0a12e63c84c7f9d2cf9d3411a46 (diff)
downloadbcm5719-llvm-c58f38f2207292533b4b0fe44ec176bae10dc6ec.tar.gz
bcm5719-llvm-c58f38f2207292533b4b0fe44ec176bae10dc6ec.zip
PR16875: The return type of a dependent function type is visible when it's
referenced as a member of the current instantiation. In that case, deduce the type of the function to a dependent type rather than exposing an undeduced auto type to the rest of the current instantiation. The standard doesn't really say that the type is dependent in this case; I'll bring this up with CWG. llvm-svn: 188410
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiateDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 3379ebcd900..3cb20c79af5 100644
--- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -3161,7 +3161,7 @@ void Sema::InstantiateFunctionDefinition(SourceLocation PointOfInstantiation,
if (Function->getTemplateSpecializationKind()
== TSK_ExplicitInstantiationDeclaration &&
!PatternDecl->isInlined() &&
- !PatternDecl->getResultType()->isUndeducedType())
+ !PatternDecl->getResultType()->getContainedAutoType())
return;
if (PatternDecl->isInlined())
OpenPOWER on IntegriCloud