This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Fix access of friend function in local class
ClosedPublic

Authored by eandrews on Jun 5 2023, 1:31 PM.

Details

Summary

Clang currently emits an error when a friend of a local class tries to access it's private data members. This patch fixes the bug.

Diff Detail

Event Timeline

eandrews created this revision.Jun 5 2023, 1:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2023, 1:31 PM
eandrews requested review of this revision.Jun 5 2023, 1:31 PM

I think the patch looks fine, but this needs a release note.

I think the patch looks fine, but this needs a release note.

Just so I know - Does every bug fix need a release note now?

I think the patch looks fine, but this needs a release note.

Just so I know - Does every bug fix need a release note now?

Just about every commit we expect to have a release note unless it is fixing a regression introduced since the last release, or is NFC. So yes, every bug fix should have one. If possible, add a link to the github issue (if it doesn't exist, obviously you don't have to).

eandrews updated this revision to Diff 528883.Jun 6 2023, 8:33 AM

Thanks for the review! I added a release note

erichkeane accepted this revision.Jun 6 2023, 8:34 AM
This revision is now accepted and ready to land.Jun 6 2023, 8:34 AM
This revision was landed with ongoing or failed builds.Jun 6 2023, 10:49 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2023, 10:49 AM