https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127477
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> ---
. If the virtual function call uses an explicit class member access
([expr.ref]) and the object expression refers to the complete object of x or
one of that object's base class subobjects but not x or one of its base class
subobjects, the behavior is undefined ([ub:class.cdtor.virtual.not.x]).
This part talks about a virtual function call but it applies to this case
because of the up cast.