Skip to content

Commit 34083d2

Browse files
committed
[expr.ass] Rename problematic stable label
As more folks from outside the technically focused WG21 committee pay attention to our standard, some language starts to gain attention as problematic. This commit fixes one such case.
1 parent a2429a5 commit 34083d2

File tree

9 files changed

+20
-17
lines changed

9 files changed

+20
-17
lines changed

source/basic.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@
674674
is defined\iref{basic.def} or called\iref{expr.call}, or
675675
\item a class with a base class of type \tcode{T} is
676676
defined\iref{class.derived}, or
677-
\item an lvalue of type \tcode{T} is assigned to\iref{expr.ass}, or
677+
\item an lvalue of type \tcode{T} is assigned to\iref{expr.assign}, or
678678
\item the type \tcode{T} is the subject of an
679679
\keyword{alignof} expression\iref{expr.alignof}, or
680680
\item an \grammarterm{exception-declaration} has type \tcode{T}, reference to
@@ -3907,7 +3907,7 @@
39073907
\end{itemize}
39083908
If no initialization is performed for an object (including subobjects),
39093909
such a byte retains its initial value
3910-
until that value is replaced\iref{dcl.init.general,expr.ass}.
3910+
until that value is replaced\iref{dcl.init.general,expr.assign}.
39113911
If any bit in the value representation has an indeterminate value,
39123912
the object has an indeterminate value;
39133913
otherwise, if any bit in the value representation has an erroneous value,
@@ -3949,7 +3949,7 @@
39493949
If an indeterminate or erroneous value of
39503950
unsigned ordinary character type or \tcode{std::byte} type
39513951
is produced by the evaluation of
3952-
the right operand of a simple assignment operator\iref{expr.ass}
3952+
the right operand of a simple assignment operator\iref{expr.assign}
39533953
whose first operand is an lvalue of
39543954
unsigned ordinary character type or \tcode{std::byte} type,
39553955
an indeterminate value or that erroneous value, respectively, replaces

source/classes.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3117,7 +3117,7 @@
31173117
Otherwise, $S(\mathtt{E})$ is empty.
31183118
\end{itemize}
31193119
In an assignment expression of the form \tcode{E1 = E2}
3120-
that uses either the built-in assignment operator\iref{expr.ass}
3120+
that uses either the built-in assignment operator\iref{expr.assign}
31213121
or a trivial assignment operator\iref{class.copy.assign},
31223122
for each element \tcode{X} of $S($\tcode{E1}$)$ and
31233123
each anonymous union member \tcode{X}\iref{class.union.anon} that

source/compatibility.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2969,7 +2969,7 @@
29692969
\howwide
29702970
Rare.
29712971

2972-
\diffref{expr.cond,expr.ass,expr.comma}
2972+
\diffref{expr.cond,expr.assign,expr.comma}
29732973
\indextext{conversion!lvalue-to-rvalue}%
29742974
\indextext{rvalue!lvalue conversion to}%
29752975
\indextext{lvalue}%

source/declarations.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@
12771277

12781278
\pnum
12791279
\indextext{const object!undefined change to}%
1280-
Any attempt to modify\iref{expr.ass,expr.post.incr,expr.pre.incr} a
1280+
Any attempt to modify\iref{expr.assign,expr.post.incr,expr.pre.incr} a
12811281
const object\iref{basic.type.qualifier} during its
12821282
lifetime\iref{basic.life} results in undefined behavior.
12831283
\begin{example}
@@ -3007,7 +3007,7 @@
30073007
\end{example}
30083008

30093009
\pnum
3010-
See also~\ref{expr.ass} and~\ref{dcl.init}.
3010+
See also~\ref{expr.assign} and~\ref{dcl.init}.
30113011

30123012
\pnum
30133013
\begin{note}
@@ -5684,7 +5684,7 @@
56845684
A reference cannot be changed to refer to another object after initialization.
56855685
\indextext{assignment!reference}%
56865686
\begin{note}
5687-
Assignment to a reference assigns to the object referred to by the reference\iref{expr.ass}.
5687+
Assignment to a reference assigns to the object referred to by the reference\iref{expr.assign}.
56885688
\end{note}
56895689
\indextext{argument passing!reference and}%
56905690
Argument passing\iref{expr.call}
@@ -5939,7 +5939,7 @@
59395939
\item as an argument to a constructor invocation\iref{dcl.init,expr.type.conv},
59405940
\item as an initializer for a non-static data member\iref{class.mem},
59415941
\item in a \grammarterm{mem-initializer}\iref{class.base.init}, or
5942-
\item on the right-hand side of an assignment\iref{expr.ass}.
5942+
\item on the right-hand side of an assignment\iref{expr.assign}.
59435943
\end{itemize}
59445944

59455945
\begin{example}

source/expressions.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
\begin{footnote}
132132
The cast and assignment operators must still perform their specific
133133
conversions as described in~\ref{expr.type.conv}, \ref{expr.cast},
134-
\ref{expr.static.cast} and~\ref{expr.ass}.
134+
\ref{expr.static.cast} and~\ref{expr.assign}.
135135
\end{footnote}
136136

137137
\rSec1[expr.prop]{Properties of expressions}
@@ -297,7 +297,7 @@
297297
\begin{note}
298298
A program that attempts
299299
to modify an object through a nonmodifiable lvalue or through an rvalue
300-
is ill-formed\iref{expr.ass,expr.post.incr,expr.pre.incr}.
300+
is ill-formed\iref{expr.assign,expr.post.incr,expr.pre.incr}.
301301
\end{note}
302302

303303
\pnum
@@ -4864,7 +4864,7 @@
48644864
An operand with volatile-qualified type is deprecated;
48654865
see~\ref{depr.volatile.type}.
48664866
The expression \tcode{++x} is otherwise equivalent to \tcode{x+=1} and
4867-
the expression \tcode{--x} is otherwise equivalent to \tcode{x-=1}\iref{expr.ass}.
4867+
the expression \tcode{--x} is otherwise equivalent to \tcode{x-=1}\iref{expr.assign}.
48684868
\begin{note}
48694869
For postfix increment and decrement, see~\ref{expr.post.incr}.
48704870
\end{note}
@@ -7296,7 +7296,7 @@
72967296
\end{codeblock}
72977297
\end{example}
72987298

7299-
\rSec2[expr.ass]{Assignment and compound assignment operators}%
7299+
\rSec2[expr.assign]{Assignment and compound assignment operators}%
73007300
\indextext{expression!assignment and compound assignment}
73017301

73027302
\pnum
@@ -7827,7 +7827,7 @@
78277827
a \keyword{reinterpret_cast}\iref{expr.reinterpret.cast};
78287828

78297829
\item
7830-
a modification of an object\iref{expr.ass,expr.post.incr,expr.pre.incr}
7830+
a modification of an object\iref{expr.assign,expr.post.incr,expr.pre.incr}
78317831
unless it is applied to a non-volatile lvalue of literal type
78327832
that refers to a non-volatile object
78337833
whose lifetime began within the evaluation of $E$;

source/future.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
\pnum
7474
Certain assignments
7575
where the left operand is a volatile-qualified non-class type
76-
are deprecated; see~\ref{expr.ass}.
76+
are deprecated; see~\ref{expr.assign}.
7777

7878
\begin{example}
7979
\begin{codeblock}

source/intro.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
Only glvalues of scalar type can be used to access objects.
9393
Reads of scalar objects are described in \ref{conv.lval} and
9494
modifications of scalar objects are described in
95-
\ref{expr.ass}, \ref{expr.post.incr}, and \ref{expr.pre.incr}.
95+
\ref{expr.assign}, \ref{expr.post.incr}, and \ref{expr.pre.incr}.
9696
Attempts to read or modify an object of class type
9797
typically invoke a constructor\iref{class.ctor}
9898
or assignment operator\iref{class.copy.assign};

source/overloading.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3093,7 +3093,7 @@
30933093
\item
30943094
an object or reference being initialized\iref{dcl.init,dcl.init.ref,dcl.init.list},
30953095
\item
3096-
the left side of an assignment\iref{expr.ass},
3096+
the left side of an assignment\iref{expr.assign},
30973097
\item
30983098
a parameter of a function\iref{expr.call},
30993099
\item

source/xrefdelta.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
% https://github.com/cplusplus/draft/pull/7345
102102
\movedxref{basic.stc.inherit}{basic.stc.general}
103103

104+
% https://github.com/cplusplus/draft/pull/7524
105+
\movedxref{expr.ass}{expr.assign}
106+
104107
%%% Deprecated features.
105108
%%% Example:
106109
%

0 commit comments

Comments
 (0)