From 34de9ce274942d4cd75cf26e293fcb8d415b2515 Mon Sep 17 00:00:00 2001 From: languagelawyer <38548419+languagelawyer@users.noreply.github.com> Date: Fri, 26 Feb 2021 02:55:52 +0300 Subject: [PATCH] [class.cdtor] Only objects of scalar type can be accessed --- source/classes.tex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/classes.tex b/source/classes.tex index 1a20b4aa5a..9eab6d2633 100644 --- a/source/classes.tex +++ b/source/classes.tex @@ -5850,11 +5850,12 @@ \pnum 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 +if the value of any of its subobjects +or any element of its object representation +is accessed through a glvalue that is not obtained, directly or indirectly, from the constructor's \keyword{this} -pointer, the value of the object or subobject thus obtained is unspecified. +pointer, the value thus obtained is unspecified. \begin{example} \begin{codeblock} struct C;