This is an archive of the discontinued LLVM Phabricator instance.

[clang] invalidate a non-dependent-type RecordDecl when it has any dependent-type base class specifier.
ClosedPublic

Authored by hokein on May 19 2021, 6:46 AM.

Details

Summary

This happens during the error-recovery, and it would esacpe all
dependent-type check guards in getTypeInfo/constexpr-evaluator code
paths, which lead to crashes.

Diff Detail

Event Timeline

hokein requested review of this revision.May 19 2021, 6:46 AM
hokein created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2021, 6:46 AM
hokein retitled this revision from [clang] Invalide a non-dependent-type RecordDecl when it has any dependent-type base class specifier. to [clang] invalidate a non-dependent-type RecordDecl when it has any dependent-type base class specifier..May 19 2021, 6:47 AM
adamcz accepted this revision.May 20 2021, 3:57 AM
This revision is now accepted and ready to land.May 20 2021, 3:57 AM
This revision was landed with ongoing or failed builds.May 20 2021, 6:33 AM
This revision was automatically updated to reflect the committed changes.