This is an archive of the discontinued LLVM Phabricator instance.

[pseudo] Eliminate an ambiguity for the empty member declaration.
ClosedPublic

Authored by hokein on Aug 11 2022, 2:16 PM.

Details

Summary

We happened to introduce a member-declaration := ; rule
when inlining the `member-declaration := decl-specifier-seq_opt
member-declarator-list_opt ;`.
And with the member-declaration := empty-declaration rule, we had two parses of ;.

This patch is to restrict the grammar to eliminate the
member-declaration := ; rule.

Diff Detail

Event Timeline

hokein created this revision.Aug 11 2022, 2:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2022, 2:16 PM
hokein requested review of this revision.Aug 11 2022, 2:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2022, 2:16 PM
kadircet accepted this revision.Aug 12 2022, 3:25 AM

thanks!

This revision is now accepted and ready to land.Aug 12 2022, 3:25 AM
This revision was landed with ongoing or failed builds.Aug 12 2022, 4:47 AM
This revision was automatically updated to reflect the committed changes.