From 851072efb735dcd66d1fbfaa434c2c9d7708e29a Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 19 May 2014 20:59:20 +0000 Subject: If two sibling modules declare the same entity, and we indirectly pull a declaration of that entity in from one of those modules, keep track of the fact that we've not completed the redeclaration chain yet so that we can pull the remaining declarations in from the other module if they're needed. llvm-svn: 209161 --- clang/test/Modules/Inputs/cxx-templates-common.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/Modules/Inputs/cxx-templates-common.h') diff --git a/clang/test/Modules/Inputs/cxx-templates-common.h b/clang/test/Modules/Inputs/cxx-templates-common.h index efbda2bd256..4a10e358805 100644 --- a/clang/test/Modules/Inputs/cxx-templates-common.h +++ b/clang/test/Modules/Inputs/cxx-templates-common.h @@ -23,3 +23,10 @@ namespace Std { } template struct TemplateInstantiationVisibility { typedef int type; }; + +template struct Outer { + template struct Inner { + void f(); + void g(); + }; +}; -- cgit v1.2.3