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.dynamic.type] Say "most derived object" in the example #6203

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

frederick-vs-ja
Copy link
Contributor

and

  • don't say the static type of a pointer, because the difference between static and dynamic types is only present for glvalues of class types;
  • say that the B* pointer is pointing to a B base class subobject, which avoids involving problematic cases of reinterpret_cast or static_cast from cv void* (see [expr.static.cast]/14).

Fixes #5762.
Fixes cplusplus/CWG#257.

source/intro.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.

[defns.dynamic.type] A misleading note [defns.dynamic.type] The note is misleading
2 participants