Skip to content

Commit 38c6f6d

Browse files
committed
[expr,class,temp] Remove vestigious references
to pseudo-destructor-name and the removed section [expr.pseudo].
1 parent 9784d05 commit 38c6f6d

File tree

7 files changed

+12
-19
lines changed

7 files changed

+12
-19
lines changed

source/basic.tex

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,19 +1776,13 @@
17761776
of that enumeration.
17771777

17781778
\pnum
1779-
If a \grammarterm{pseudo-destructor-name}\iref{expr.pseudo} contains a
1780-
\grammarterm{nested-name-specifier}, the \grammarterm{type-name}{s} are looked
1781-
up as types in the scope designated by the
1782-
\grammarterm{nested-name-specifier}. Similarly, in a
1783-
\grammarterm{qualified-id} of the form:
1779+
In a \grammarterm{qualified-id} of the form:
17841780

17851781
\begin{ncbnf}
1786-
\opt{nested-name-specifier} class-name \terminal{::} \terminal{\~} class-name
1782+
\opt{nested-name-specifier} type-name \terminal{::} \terminal{\~} type-name
17871783
\end{ncbnf}
1788-
1789-
the second \grammarterm{class-name} is looked up in the same scope as the
1790-
first. \begin{example}
1791-
1784+
the second \grammarterm{type-name} is looked up in the same scope as the first.
1785+
\begin{example}
17921786
\begin{codeblock}
17931787
struct C {
17941788
typedef int I;
@@ -1808,8 +1802,10 @@
18081802
p->AB::~AB(); // explicitly calls the destructor for \tcode{A}
18091803
}
18101804
\end{codeblock}
1811-
\end{example} \begin{note} \ref{basic.lookup.classref} describes how name
1812-
lookup proceeds after the \tcode{.} and \tcode{->} operators. \end{note}
1805+
\end{example}
1806+
\begin{note} \ref{basic.lookup.classref} describes how name
1807+
lookup proceeds after the \tcode{.} and \tcode{->} operators.
1808+
\end{note}
18131809

18141810
\rSec3[class.qual]{Class members}
18151811

source/classes.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2384,7 +2384,7 @@
23842384
\begin{note}
23852385
\indextext{fundamental type!destructor and}%
23862386
The notation for explicit call of a destructor can be used for any scalar type
2387-
name\iref{expr.pseudo}.
2387+
name\iref{expr.prim.id.dtor}.
23882388
Allowing this makes it possible to write code without having to know if a
23892389
destructor exists for a given type.
23902390
For example:

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@
15291529
\grammarterm{simple-type-specifier} introduces
15301530
its \grammarterm{type-name}\iref{dcl.type.simple}.
15311531
If the \grammarterm{identifier} or \grammarterm{simple-template-id} resolves to a
1532-
\grammarterm{typedef-name} (\ref{dcl.typename} \ref{temp.names}),
1532+
\grammarterm{typedef-name} (\ref{dcl.typedef}, \ref{temp.names}),
15331533
the \grammarterm{elaborated-type-specifier} is ill-formed.
15341534
\begin{note}
15351535
This implies that, within a class template with a template

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6644,7 +6644,7 @@
66446644
a \tcode{reinterpret_cast}\iref{expr.reinterpret.cast};
66456645

66466646
\item
6647-
a pseudo-destructor call\iref{expr.pseudo};
6647+
a pseudo-destructor call\iref{expr.prim.id.dtor};
66486648

66496649
\item
66506650
modification of an object~(\ref{expr.ass}, \ref{expr.post.incr},

source/iterators.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
if all operations provided to meet iterator category requirements
231231
are constexpr functions, except for
232232
\begin{itemize}
233-
\item a pseudo-destructor call\iref{expr.pseudo}, and
233+
\item a pseudo-destructor call\iref{expr.prim.id.dtor}, and
234234
\item the construction of an iterator with a singular value.
235235
\end{itemize}
236236
\begin{note}

source/overloading.tex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3412,7 +3412,6 @@
34123412

34133413
\begin{ncsimplebnf}
34143414
postfix-expression \terminal{->} \terminal{\opt{template}} id-expression\\
3415-
postfix-expression \terminal{->} pseudo-destructor-name
34163415
\end{ncsimplebnf}
34173416

34183417
An expression

source/templates.tex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5213,8 +5213,6 @@
52135213

52145214
\begin{ncsimplebnf}
52155215
literal\br
5216-
postfix-expression \terminal{.} pseudo-destructor-name\br
5217-
postfix-expression \terminal{->} pseudo-destructor-name\br
52185216
\terminal{sizeof} unary-expression\br
52195217
\terminal{sizeof (} type-id \terminal{)}\br
52205218
\terminal{sizeof} \terminal{...} \terminal{(} identifier \terminal{)}\br

0 commit comments

Comments
 (0)