]> granicus.if.org Git - clang/commit
Sema: Don't crash when trying to instantiate a local class with an invalid base specifier
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 22 Feb 2014 00:17:46 +0000 (00:17 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 22 Feb 2014 00:17:46 +0000 (00:17 +0000)
commitfb9b689230eed1d9c1b7cecc80e4545d233b3b91
tree33b89b8530e6939fe7b26e751a70206943e9d0b4
parent1035a959dafb867fe30eeb70cc59f3cd7f905492
Sema: Don't crash when trying to instantiate a local class with an invalid base specifier

It was previously thought that Sema::InstantiateClass could not fail
from within this point in instantiate.

However, it can happen if the class is invalid some way (i.e. invalid
base specifier).

This fixes PR18907.

Differential Revision: http://llvm-reviews.chandlerc.com/D2850

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201913 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-local-class.cpp