The Redeclarable part of named decls is read before their name.
authorAxel Naumann <Axel.Naumann@cern.ch>
Mon, 1 Oct 2012 09:51:27 +0000 (09:51 +0000)
committerAxel Naumann <Axel.Naumann@cern.ch>
Mon, 1 Oct 2012 09:51:27 +0000 (09:51 +0000)
commit3dd82f7f01a9ba995bea3027a934df85850cab58
tree5369cc7bd5b365181712036ef5dcdb72e706e971
parentb0e33d499d97b69f795cb53f8934bcd134a56b5a
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164932 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReader.cpp
test/Modules/Inputs/redecl-merge-left.h