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

[class.access.base] No cv-qualification for access to inherited members #5068

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4765,10 +4765,10 @@
``\tcode{this->}'',
is used to access a non-static data member or non-static
member function, the reference is ill-formed if the
left operand (considered as a pointer in the
left operand is of type \cv{}~\tcode{D*} (or \cv{}~\tcode{D} in the
frederick-vs-ja marked this conversation as resolved.
Show resolved Hide resolved
``\tcode{.}''
operator case) cannot be implicitly converted to a
pointer to the naming class of the right operand.
operator case), the naming class of the right operand is \cv{}~\tcode{B},
and a prvalue of type \tcode{D*} cannot be implicitly converted to \tcode{B*}.
\begin{note}
This requirement is in addition to the requirement that
the member be accessible as named.
Expand Down