]> granicus.if.org Git - clang/commit
Robustify instantiation of templates when there are errors in the
authorDouglas Gregor <dgregor@apple.com>
Mon, 1 Mar 2010 18:27:54 +0000 (18:27 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 1 Mar 2010 18:27:54 +0000 (18:27 +0000)
commit00225547b51b42f7400eed36475b6672418a1151
tree85987be0a714e7b23babb929ca5a5f62c7293232
parent2e0a715595a21adeb7172995df59317741301aa3
Robustify instantiation of templates when there are errors in the
template definition. Do this both by being more tolerant of errors in
our asserts and by not dropping a variable declaration completely when
its initializer is ill-formed. Fixes the crash-on-invalid in PR6375,
but not the original issue.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97463 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Action.h
lib/Parse/ParseDecl.cpp
lib/Sema/Sema.h
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-invalid.cpp [new file with mode: 0644]