From d55889a6551f6a8efddeaa781330f7f1368b2fcb Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 9 Sep 2013 16:55:27 +0000 Subject: 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 --- clang/test/Modules/Inputs/templates-left.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/test/Modules/Inputs/templates-left.h') 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::Inner OuterIntInner_left; -- cgit v1.2.3