This can happen on some invalid code, like the included test case.
Details
Details
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Paths 
  |  Differential  D94704  
[clang] Do not crash when CXXRecordDecl has a non-CXXRecordDecl base. ClosedPublic Authored by adamcz on Jan 14 2021, 11:58 AM. 
Details Summary This can happen on some invalid code, like the included test case. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Jan 14 2021, 12:00 PM This revision was landed with ongoing or failed builds.Jan 14 2021, 12:28 PM Closed by commit rGa71877edfbb7: [clang] Do not crash when CXXRecordDecl has a non-CXXRecordDecl base. (authored by adamcz).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 316744 clang/lib/Sema/SemaDeclCXX.cpp
 
 clang/test/SemaTemplate/temp_class_spec.cpp
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||