]> granicus.if.org Git - clang/commit
Bring ASTReader and Writer into sync for the case where a canonical template speciali...
authorAxel Naumann <Axel.Naumann@cern.ch>
Mon, 1 Oct 2012 07:34:47 +0000 (07:34 +0000)
committerAxel Naumann <Axel.Naumann@cern.ch>
Mon, 1 Oct 2012 07:34:47 +0000 (07:34 +0000)
commit7b3b95a9485059b196896accc0144fd0bc31ff2c
tree0d6adb5d7bc6c15b37cdb37e398312c85a08b7ef
parent6cacae8bf9597b8124cd40aedc189c04484e1990
Bring ASTReader and Writer into sync for the case where a canonical template specialization was written, which is non-canonical at the time of reading: force the reading of the ClassTemplateDecl if it was written.
The easiest way out is to store whether the decl was canonical at the time of writing.
Add test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164927 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriterDecl.cpp
test/Modules/Inputs/redecl-merge-left.h
test/Modules/Inputs/redecl-merge-right.h
test/Modules/Inputs/redecl-merge-top.h
test/Modules/redecl-merge.m