From a8243e9aa25bdd4eb6b7810c7c056b0a635fced4 Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Mon, 1 Oct 2012 09:51:27 +0000 Subject: The Redeclarable part of named decls is read before their name. Lookup can nevertheless find them due to the serialized lookup table. For instance when reading a template decl's templatedDecl, it will search for existing decls that it could be a redeclaration of, and find the half-read template decl. Thus there is no point in asserting the names of decls. llvm-svn: 164932 --- clang/test/Modules/Inputs/redecl-merge-left.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'clang/test/Modules/Inputs/redecl-merge-left.h') diff --git a/clang/test/Modules/Inputs/redecl-merge-left.h b/clang/test/Modules/Inputs/redecl-merge-left.h index a6ea6024c85..1f5da4f2e27 100644 --- a/clang/test/Modules/Inputs/redecl-merge-left.h +++ b/clang/test/Modules/Inputs/redecl-merge-left.h @@ -88,12 +88,14 @@ template<> class List { public: void push_back(int); }; - namespace N { -template class Set { -public: - void insert(T); -}; + template class Set; +} +namespace N { + template class Set { + public: + void insert(T); + }; } #endif -- cgit v1.2.3