diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-09-09 16:55:27 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-09-09 16:55:27 +0000 |
| commit | d55889a6551f6a8efddeaa781330f7f1368b2fcb (patch) | |
| tree | 4a17235bc1d5c2f09f27ca769c66cb101899b339 /clang/lib/Sema | |
| parent | 1b18a5ec2863d3345073576227fb67cbb6a4f13a (diff) | |
| download | bcm5719-llvm-d55889a6551f6a8efddeaa781330f7f1368b2fcb.tar.gz bcm5719-llvm-d55889a6551f6a8efddeaa781330f7f1368b2fcb.zip | |
C++ modules: if a class is defined in multiple modules (for instance, because
it is an implicit instantiation of a class template specialization), pick the
first-loaded definition to be the canonical definition, and merge all other
definitions into it.
This is still rather incomplete -- we need to extend every form of declaration
that can appear within a CXXRecordDecl to be redeclarable if it came from an
AST file (this includes fields, enumerators, ...).
llvm-svn: 190315
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index d3fdecbe40e..5b641d80598 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -2506,7 +2506,7 @@ Sema::SpecialMemberOverloadResult *Sema::LookupSpecialMember(CXXRecordDecl *RD, SmallVector<NamedDecl *, 8> Candidates(R.begin(), R.end()); for (SmallVectorImpl<NamedDecl *>::iterator I = Candidates.begin(), - E = Candidates.end(); + E = Candidates.end(); I != E; ++I) { NamedDecl *Cand = *I; |

