Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[intro.object] The term "potentially-overlapping subobject" doesn't seem to exclude reference members #6158

Open
frederick-vs-ja opened this issue Mar 4, 2023 · 2 comments · May be fixed by #6160

Comments

@frederick-vs-ja
Copy link
Contributor

no_unique_address can be applied to non-static reference data members, which is needed for ranges::minmax.

However, the current wording seemingly implies that a non-static data member of a reference type declared with [[no_unique_address]] would also be a "potentially-overlapping subobject" even if it can't be a subobject.

@jensmaurer
Copy link
Member

Any suggestions how to fix that?

@frederick-vs-ja
Copy link
Contributor Author

Any suggestions how to fix that?

I've submitted the PR. cplusplus/CWG#254 may be related, but I think this can be resolved editorially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants