]> granicus.if.org Git - clang/commit
Don't try to get a CXXRecordDecl from a non-class TemplateSpecializationType.
authorKaelyn Takata <rikka@google.com>
Thu, 1 Oct 2015 22:38:51 +0000 (22:38 +0000)
committerKaelyn Takata <rikka@google.com>
Thu, 1 Oct 2015 22:38:51 +0000 (22:38 +0000)
commit20cd3937eef89045ba584539f665f401be5f5bea
tree5db7987439b5685b0a132431488e4c12483aa75d
parentd347d226ce6a15b052e0a39a885310668ded593f
Don't try to get a CXXRecordDecl from a non-class TemplateSpecializationType.

With -fms-extensions it is possible to have a non-class record that is a
template specialization cause an assertion failure via the call to
Type::getAsCXXRecordDecl. Fixes PR 24246.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249090 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
test/SemaCXX/MicrosoftExtensions.cpp