[class.access.base] No cv-qualification for access to inherited members#5068
Open
frederick-vs-ja wants to merge 1 commit into
Open
[class.access.base] No cv-qualification for access to inherited members#5068frederick-vs-ja wants to merge 1 commit into
frederick-vs-ja wants to merge 1 commit into
Conversation
jensmaurer
requested changes
Oct 24, 2021
jensmaurer
reviewed
Oct 24, 2021
jensmaurer
reviewed
Oct 24, 2021
Contributor
|
@jensmaurer @zygoloid @opensdh |
Contributor
|
@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
Contributor
Author
|
@jensmaurer I'm trying to use the "less clunky approach" now (with squashing and rebasing). |
jensmaurer
reviewed
Jul 23, 2023
Contributor
Author
|
@jensmaurer I've rebased the branch and slightly reworded the wording. |
c02bb94 to
ce2675c
Compare
... and discard cv for the left hand side operand.
ce2675c to
cb00dd4
Compare
Contributor
|
This is of course the same restriction as is needed for the splicing of a base-class relationship (as recently discussed). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.