Skip to content

Commit 73bff4c

Browse files
jensmaurerzygoloid
authored andcommitted
Change 'result is undefined' to 'has undefined behavior' (#1042)
Fixes #557.
1 parent e4e0cc6 commit 73bff4c

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

source/containers.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4887,7 +4887,7 @@
48874887
\tcode{[first, last)}
48884888
is a valid range in
48894889
\tcode{x}.
4890-
The result is undefined if
4890+
The program has undefined behavior if
48914891
\tcode{position}
48924892
is an iterator in the range
48934893
\range{first}{last}.

source/numerics.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7006,7 +7006,7 @@
70067006
\pnum
70077007
If the value of an element in the left-hand side of a valarray assignment
70087008
operator depends on the value of another element in that left-hand side,
7009-
the resulting behavior is undefined.
7009+
the behavior is undefined.
70107010
\end{itemdescr}
70117011

70127012
\rSec3[valarray.access]{\tcode{valarray} element access}
@@ -7333,7 +7333,7 @@
73337333
\pnum
73347334
If the value of an element in the left-hand side of a valarray compound
73357335
assignment operator depends on the value of another element in that left
7336-
hand side, the resulting behavior is undefined.
7336+
hand side, the behavior is undefined.
73377337
\end{itemdescr}
73387338

73397339
\indexlibrarymember{operator*=}{valarray}%
@@ -8122,7 +8122,7 @@
81228122
non-\tcode{const}
81238123
version of
81248124
\tcode{operator[](const gslice\&)},
8125-
the resulting behavior is undefined.
8125+
the behavior is undefined.
81268126
\indextext{undefined}%
81278127

81288128
\rSec3[gslice.cons]{\tcode{gslice} constructors}

source/special.tex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,7 @@
20182018
\grammarterm{ctor-initializer})
20192019
before all the
20202020
\grammarterm{mem-initializer}{s}
2021-
for base classes have completed, the result of the operation is undefined.
2021+
for base classes have completed, the program has undefined behavior.
20222022
\begin{example}
20232023

20242024
\begin{codeblock}
@@ -2362,9 +2362,7 @@
23622362
\tcode{typeid}
23632363
refers to the object under construction or destruction and the static type of
23642364
the operand is neither the constructor or destructor's class nor one of its
2365-
bases, the result of
2366-
\tcode{typeid}
2367-
is undefined.
2365+
bases, the behavior is undefined.
23682366

23692367
\pnum
23702368
\indextext{construction!dynamic cast and}%

0 commit comments

Comments
 (0)