|
55 | 55 |
|
56 | 56 | <P class="ins">
|
57 | 57 | 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. |
63 | 66 | </P>
|
64 | 67 |
|
65 | 68 | </BLOCKQUOTE>
|
|
82 | 85 | <INS>If <TT>v</TT> is a null pointer value, the result is a null
|
83 | 86 | pointer value. Otherwise, if <TT>B</TT> is a virtual base class
|
84 | 87 | 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> |
88 | 93 |
|
89 | 94 | </BLOCKQUOTE>
|
90 | 95 | </LI>
|
|
0 commit comments