diff options
author | Axel Naumann <Axel.Naumann@cern.ch> | 2012-10-01 09:51:27 +0000 |
---|---|---|
committer | Axel Naumann <Axel.Naumann@cern.ch> | 2012-10-01 09:51:27 +0000 |
commit | a8243e9aa25bdd4eb6b7810c7c056b0a635fced4 (patch) | |
tree | d60d6972f8fe9dc45255be182e05999194564008 /clang/test/Modules/Inputs/redecl-merge-left.h | |
parent | 866ba3e36561dfe251139530487868025d782743 (diff) | |
download | bcm5719-llvm-a8243e9aa25bdd4eb6b7810c7c056b0a635fced4.tar.gz bcm5719-llvm-a8243e9aa25bdd4eb6b7810c7c056b0a635fced4.zip |
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
Diffstat (limited to 'clang/test/Modules/Inputs/redecl-merge-left.h')
-rw-r--r-- | clang/test/Modules/Inputs/redecl-merge-left.h | 12 |
1 files changed, 7 insertions, 5 deletions
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<bool> { public: void push_back(int); }; - namespace N { -template<typename T> class Set { -public: - void insert(T); -}; + template<typename T> class Set; +} +namespace N { + template<typename T> class Set { + public: + void insert(T); + }; } #endif |