[clang] Do not crash when CXXRecordDecl has a non-CXXRecordDecl base.
authorAdam Czachorowski <adamcz@google.com>
Thu, 14 Jan 2021 19:54:16 +0000 (20:54 +0100)
committerAdam Czachorowski <adamcz@google.com>
Thu, 14 Jan 2021 20:20:06 +0000 (21:20 +0100)
commita71877edfbb7094584f6d20d93f6091e7d374024
tree25da48181758a208e7e4d7498b61ad7b9a0d71fd
parent5cf2696317afb0631a4a09414ae40a4e226a905e
[clang] Do not crash when CXXRecordDecl has a non-CXXRecordDecl base.

This can happen on some invalid code, like the included test case.

Differential Revision: https://reviews.llvm.org/D94704
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/SemaTemplate/temp_class_spec.cpp