Skip to content

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.

@languagelawyer languagelawyer force-pushed the access.class.type branch 2 times, most recently from 255f60d to f6b5384 Compare September 27, 2021 16:57
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.

3 participants