This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix crash on broken parameter declarators
ClosedPublic

Authored by kadircet on Nov 25 2021, 11:12 AM.

Diff Detail

Event Timeline

kadircet requested review of this revision.Nov 25 2021, 11:12 AM
kadircet created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 25 2021, 11:12 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.Nov 26 2021, 1:12 AM

Thanks!

clang/test/Parser/cxx-decltype-parameter.cpp
1 ↗(On Diff #389851)

I'd place this test in Parser/cxx-keyword-identifiers.cpp since the crash is in the relevant code path.

5 ↗(On Diff #389851)

this can be simplified further: void bar(*decltype(1) aux);

This revision is now accepted and ready to land.Nov 26 2021, 1:12 AM
This revision was automatically updated to reflect the committed changes.
kadircet marked 2 inline comments as done.