diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-07 02:25:43 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-07 02:25:43 +0000 |
commit | 3d23c42029a8675f388c996fc7e7c1aff5e85f43 (patch) | |
tree | 7867dc23443f2c78d542641d80c731461d228975 /clang/lib/Sema/SemaLookup.cpp | |
parent | cf27e1b996f290c4ae186fd9060bf5b36302b3ec (diff) | |
download | bcm5719-llvm-3d23c42029a8675f388c996fc7e7c1aff5e85f43.tar.gz bcm5719-llvm-3d23c42029a8675f388c996fc7e7c1aff5e85f43.zip |
If an instantiation of a template is required to be a complete type, check
whether the definition of the template is visible rather than checking whether
the instantiated definition happens to be in an imported module.
llvm-svn: 208150
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index db7fe6e6140..fc07e7273fc 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -4577,9 +4577,9 @@ void Sema::diagnoseTypo(const TypoCorrection &Correction, Diag(Def->getLocation(), diag::note_previous_declaration); // Recover by implicitly importing this module. - if (!isSFINAEContext() && ErrorRecovery) - createImplicitModuleImport(Correction.getCorrectionRange().getBegin(), - Owner); + if (ErrorRecovery) + createImplicitModuleImportForErrorRecovery( + Correction.getCorrectionRange().getBegin(), Owner); return; } |