Repository navigation
[expr.ref][class.access.base] Move pointer convertibility wording and discard cv for the left hand side operand - #5068
frederick-vs-ja wants to merge 1 commit into
Conversation
|
@jensmaurer @zygoloid @opensdh |
|
@languagelawyer: Even aside from the "member's class" issue, that generic restriction doesn't address the possibility of rejecting the access for access control or ambiguous inheritance reasons. Perhaps there is already yet another place that checks that, though. |
5f52813 to
0e1dc79
Compare
|
@jensmaurer I'm trying to use the "less clunky approach" now (with squashing and rebasing). |
|
@jensmaurer I've rebased the branch and slightly reworded the wording. |
c02bb94 to
ce2675c
Compare
ce2675c to
cb00dd4
Compare
|
This is of course the same restriction as is needed for the splicing of a base-class relationship (as recently discussed). |
... and discard cv for the left hand side operand.
cb00dd4 to
ab30269
Compare
|
@jensmaurer @opensdh I expanded the note to mention the case for base class. |
Fixes #4952
The pointed-to designating class type should be identically cv-qualified.The class type of the left operand and the designating class of the member should be considered cv-unqualified for the purpose of accessibility.