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/test/Modules/Inputs/templates-left.h | |
| 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/test/Modules/Inputs/templates-left.h')
| -rw-r--r-- | clang/test/Modules/Inputs/templates-left.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/templates-left.h b/clang/test/Modules/Inputs/templates-left.h index 7451420c748..7c9be8c6514 100644 --- a/clang/test/Modules/Inputs/templates-left.h +++ b/clang/test/Modules/Inputs/templates-left.h @@ -27,3 +27,5 @@ void triggerPendingInstantiation() { } void redeclDefinitionEmit(){} + +typedef Outer<int>::Inner OuterIntInner_left; |

