Skip to content

Commit 5c22ccd

Browse files
Semantically resolved pointer-to-non-static-member (#157)
* Semantically resolved pointer-to-non-static-member Document a dedicated operator for representing a fully semantically resolved pointer to non-static member (data or function).
1 parent dc20c26 commit 5c22ccd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ltx/exprs.tex

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ \subsection{\valueTag{ExprSort::UnaryFold}}
12441244
\partition{expr.unary-fold}
12451245

12461246

1247-
\subsection{\valueTag{ExprSort::BinaryFoid}}
1247+
\subsection{\valueTag{ExprSort::BinaryFold}}
12481248
\label{sec:ifc:ExprSort:BinaryFold}
12491249

12501250
\begin{figure}[H]
@@ -2231,6 +2231,7 @@ \subsection{Dyadic operators}
22312231
\enumerator{ZeroInitialize}
22322232
\enumerator{ClearStorage}
22332233
\enumerator{Select}
2234+
\enumerator{Address}
22342235

22352236
\setcounter{enumi}{1023}
22362237
\enumerator{Msvc}
@@ -2477,6 +2478,13 @@ \subsection{Dyadic operators}
24772478
Use of the source-level scope resolution operator ``\code{::}''.
24782479
The first operand designates the scope, and the second operand designates the member to select.
24792480

2481+
\ifcSortSection{Address}{DyadicOperator}
2482+
Semantic resolution of a pointer to a non-static member of a class. The first operand designates the class-type scope,
2483+
and the second operand designates the member of the class.
2484+
\note{While the source-level construct ``\code{&S::m}'' is generally represented as a \sortref{Address}{MonadicOperator} of
2485+
a \sortref{Select}{DyadicOperator} syntactic tree (especially in template code), this specific operator is used only
2486+
when the scope is known to be a class-type and the member is known to be a non-static data member or a non-static member function.}
2487+
24802488
\ifcSortSection{Msvc}{DyadicOperator}
24812489
This is a marker, not an actual operator. Dyadic operators with
24822490
value greater that this are MSVC extensions.

0 commit comments

Comments
 (0)