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

[defns.access] [basic.lval] Clarify what and how can be accessed #4777

Merged
merged 2 commits into from Nov 23, 2021

Conversation

languagelawyer
Copy link
Contributor

struct S { int i; } s;
auto u = (unsigned&)s; // accesses s, which is an object of class type

So the Notes are not accurate enough.

@jensmaurer
Copy link
Member

[basic.lval] p11 formulates the aliasing constraints, and it uses "access". So, it would be good if "access" also applied to reads/writes made invalid by the aliasing rules.

source/expressions.tex Outdated Show resolved Hide resolved
source/expressions.tex Outdated Show resolved Hide resolved
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 this pull request may close these issues.

None yet

3 participants