This is an archive of the discontinued LLVM Phabricator instance.

[clang] Add test for CWG2213
ClosedPublic

Authored by Endill on May 20 2023, 9:00 AM.

Details

Reviewers
shafik
cor3ntin
Group Reviewers
Restricted Project
Commits
rG71bc3dd42e29: [clang] Add test for CWG2213
Summary

P1787: CWG2213 is resolved by allowing an elaborated-type-specifier to contain a simple-template-id without friend.
Wording: see changes to [dcl.type.elab]]/1.

The gist of the issue is that forward declaration of partial class template specialization was disallowed.

Diff Detail

Event Timeline

Endill created this revision.May 20 2023, 9:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2023, 9:00 AM
Endill requested review of this revision.May 20 2023, 9:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2023, 9:00 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

If reviewers would prefer this to be simply marked N/A, I'm not going to oppose. I wrote a test for this because it was simple enough.

shafik accepted this revision.May 22 2023, 11:02 AM

Thank you, I think more examples are never bad, LGTM

This revision is now accepted and ready to land.May 22 2023, 11:02 AM
This revision was automatically updated to reflect the committed changes.