]> granicus.if.org Git - clang/commit
Be more eager about setting the 'Invalid' bit on an invalid class
authorDouglas Gregor <dgregor@apple.com>
Mon, 2 Jul 2012 21:00:41 +0000 (21:00 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 2 Jul 2012 21:00:41 +0000 (21:00 +0000)
commit8a50fe0d76b0f245b4cdd599230f2ee023be82cd
tree764627a1d04ce42d4f3c6d9759792c80298be54b
parent9224fb88ffe787a1b49e094cf23a03f0739dcb48
Be more eager about setting the 'Invalid' bit on an invalid class
template instantiation. I wasn't able to reproduce this down to
anything small enough to put in our test suite, but it's "obviously"
okay to set the invalid bit earlier and precludes a
known-broken-but-not-marked-broken class from being used elsewhere.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159584 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaCXX/PR9460.cpp