Skip to content

Commit 3f9de47

Browse files
burblebeetkoeppe
authored andcommitted
CWG2625 Deletion of pointer to out-of-lifetime object
1 parent fb69b32 commit 3f9de47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/basic.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3431,8 +3431,7 @@
34313431
program has undefined behavior if:
34323432
\begin{itemize}
34333433
\item
3434-
the object will be or was of a class type with a non-trivial destructor
3435-
and the pointer is used as the operand of a \grammarterm{delete-expression},
3434+
the pointer is used as the operand of a \grammarterm{delete-expression},
34363435
\item
34373436
the pointer is used to access a non-static data member or call a
34383437
non-static member function of the object, or

0 commit comments

Comments
 (0)