summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiate.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-05-11 20:37:46 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-05-11 20:37:46 +0000
commitc2bebe9acab26b5af209f11b3ee978966feab491 (patch)
tree3573c6b429a7cf0bf311f648650ce49743c6a741 /clang/lib/Sema/SemaTemplateInstantiate.cpp
parent1455de2171e8829f75935f11b254f404417c260c (diff)
downloadbcm5719-llvm-c2bebe9acab26b5af209f11b3ee978966feab491.tar.gz
bcm5719-llvm-c2bebe9acab26b5af209f11b3ee978966feab491.zip
Preserve the FoundDecl when performing overload resolution for constructors.
This is in preparation for C++ P0136R1, which switches the model for inheriting constructors over from synthesizing a constructor to finding base class constructors (via using shadow decls) when looking for derived class constructors. llvm-svn: 269231
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiate.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index c9eaa243c6c..243fedbd65b 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp
@@ -2321,8 +2321,9 @@ bool Sema::InstantiateClassTemplateSpecialization(
Info)) {
// Store the failed-deduction information for use in diagnostics, later.
// TODO: Actually use the failed-deduction info?
- FailedCandidates.addCandidate()
- .set(Partial, MakeDeductionFailureInfo(Context, Result, Info));
+ FailedCandidates.addCandidate().set(
+ DeclAccessPair::make(Template, AS_public), Partial,
+ MakeDeductionFailureInfo(Context, Result, Info));
(void)Result;
} else {
Matched.push_back(PartialSpecMatchResult());
OpenPOWER on IntegriCloud