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

Fix incorrect references to past the end pointers #3836

Closed
wants to merge 1 commit into from

Conversation

sdkrystian
Copy link
Contributor

The proper terminology is used and defined in [basic.compound] p3:

[...] a pointer past the end of the last element of an array x of n elements [...]

pointer represents the address one past the last element of a different
pointer represents the address past the end\iref{basic.compound} of a different
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is about the represented address, not the pointer value, so I think this change isn't what we want. Something like this might work, but it's a bit clumsy: "and another pointer represents the same address as a pointer past the end of a different complete object".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about "pointer represents the address of a pointer value past the end of a different complete object"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need "same address" somewhere in the mix.

@zygoloid zygoloid added the changes requested Changes to the wording or approach have been requested and not yet applied. label Mar 13, 2020
@jensmaurer jensmaurer added the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Oct 29, 2020
@tkoeppe
Copy link
Contributor

tkoeppe commented Jun 27, 2021

I'm inclined to close this suggestion, given that it doesn't work as is, and it's not clear that we know of an actual improvement.

Please reopen if you have further thoughts.

@tkoeppe tkoeppe closed this Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Changes to the wording or approach have been requested and not yet applied. needs rebase The pull request needs a git rebase to resolve merge conflicts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants