Skip to content

Change 'result is undefined' to 'has undefined behavior' #1042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4887,7 +4887,7 @@
\tcode{[first, last)}
is a valid range in
\tcode{x}.
The result is undefined if
The program has undefined behavior if
\tcode{position}
is an iterator in the range
\range{first}{last}.
Expand Down
6 changes: 3 additions & 3 deletions source/numerics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7006,7 +7006,7 @@
\pnum
If the value of an element in the left-hand side of a valarray assignment
operator depends on the value of another element in that left-hand side,
the resulting behavior is undefined.
the behavior is undefined.
\end{itemdescr}

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

\indexlibrarymember{operator*=}{valarray}%
Expand Down Expand Up @@ -8122,7 +8122,7 @@
non-\tcode{const}
version of
\tcode{operator[](const gslice\&)},
the resulting behavior is undefined.
the behavior is undefined.
\indextext{undefined}%

\rSec3[gslice.cons]{\tcode{gslice} constructors}
Expand Down
6 changes: 2 additions & 4 deletions source/special.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@
\grammarterm{ctor-initializer})
before all the
\grammarterm{mem-initializer}{s}
for base classes have completed, the result of the operation is undefined.
for base classes have completed, the program has undefined behavior.
\begin{example}

\begin{codeblock}
Expand Down Expand Up @@ -2362,9 +2362,7 @@
\tcode{typeid}
refers to the object under construction or destruction and the static type of
the operand is neither the constructor or destructor's class nor one of its
bases, the result of
\tcode{typeid}
is undefined.
bases, the behavior is undefined.

\pnum
\indextext{construction!dynamic cast and}%
Expand Down