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

[dcl.dcl]/11 Storage from object definitions has proper alignment #2877

Closed
wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 11, 2019

Require implementations to reserve storage of both proper size and aligment in an object definition. Previously, this sentence requires only storage of proper size be reserved.

Additionally, specified that space is only reserved for object definitions, as it does not make sense to reserve space for a function definition.

Rationale for being editorial: if implementations are not required to reserve storage of proper alignment, accessing any variable is then possibly-UB due to lifetime failing to begin ([basic.life]/1). This is obviously not the intent of the Committee.

@ghost
Copy link
Author

ghost commented May 11, 2019

Closed due to creating under wrong user account (sorry).

@ghost ghost closed this May 11, 2019
@randomnetcat randomnetcat deleted the patch_1 branch September 25, 2019 01:40
This pull request was closed.
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

1 participant