-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
EWGEvolutionEvolutionSG12Undefined behaviorUndefined behaviorrejectedNo consensus for a change.No consensus for a change.
Milestone
Description
Clarify that *this in constructors could not alias with reference input parameters of the same type. This is useful for optimizing all the constructors of all the classes.
Proposed change:
Apply the following changes to the [class.cdtor] paragraph 2:
During the construction of an object, if the value of the object or any of its subobjects is accessed through a glvalue that is not obtained, directly or indirectly, from the constructor's this pointer, the value of the object or subobject thus obtained is unspecified undefined.
Metadata
Metadata
Assignees
Labels
EWGEvolutionEvolutionSG12Undefined behaviorUndefined behaviorrejectedNo consensus for a change.No consensus for a change.