Skip to content

Commit 191f0d2

Browse files
committed
update
1 parent 7d508e0 commit 191f0d2

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

issues/2861.html

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@
5555

5656
<P class="ins">
5757
If <TT>v</TT> has type "pointer to <I>cv</I> <TT>U</TT>"
58-
and <TT>v</TT> does not point to an object within its lifetime whose
59-
type is similar (7.3.6 [<A href="https://wg21.link/conv.qual">conv.qual</A>]) to <TT>U</TT>, the
60-
behavior is undefined. If <TT>v</TT> is a glvalue of type <TT>U</TT>
61-
and <TT>v</TT> does not refer to an object within its lifetime whose
62-
type is similar to <TT>U</TT>, the behavior is undefined.
58+
and <TT>v</TT> does not point to an object within its lifetime or
59+
within its period of construction or destruction
60+
(11.9.5 [<A href="https://wg21.link/class.cdtor">class.cdtor</A>]) whose type is similar
61+
(7.3.6 [<A href="https://wg21.link/conv.qual">conv.qual</A>]) to <TT>U</TT>, the behavior is undefined.
62+
If <TT>v</TT> is a glvalue of type <TT>U</TT> and <TT>v</TT> does not
63+
refer to an object within its lifetime or within its period of
64+
construction or destruction whose type is similar to <TT>U</TT>, the
65+
behavior is undefined.
6366
</P>
6467

6568
</BLOCKQUOTE>
@@ -82,9 +85,11 @@
8285
<INS>If <TT>v</TT> is a null pointer value, the result is a null
8386
pointer value. Otherwise, if <TT>B</TT> is a virtual base class
8487
of <TT>D</TT> and <TT>v</TT> does not point to an object within its
85-
lifetime whose type is similar (7.3.6 [<A href="https://wg21.link/conv.qual">conv.qual</A>])
86-
to <TT>D</TT>, the behavior is undefined. Otherwise, the result is a
87-
pointer to the base class subobject of the derived class object.</INS>
88+
lifetime or within its period of construction or destruction
89+
(11.9.5 [<A href="https://wg21.link/class.cdtor">class.cdtor</A>]) whose type is similar
90+
(7.3.6 [<A href="https://wg21.link/conv.qual">conv.qual</A>]) to <TT>D</TT>, the behavior is
91+
undefined. Otherwise, the result is a pointer to the base class
92+
subobject of the derived class object.</INS>
8893

8994
</BLOCKQUOTE>
9095
</LI>

0 commit comments

Comments
 (0)