Skip to content

Commit af7b694

Browse files
committed
Fixup: whitespace and transcription errors
1 parent 4e460f9 commit af7b694

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

source/compatibility.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,9 +1945,9 @@
19451945
int g() { return f(); }
19461946

19471947
// Translation unit 2
1948-
int f(int a = 76) { return a; } // ill-formed (no diagnostic required); previously well-formed
1948+
int f(int a = 76) { return a; } // ill-formed (no diagnostic required); previously well-formed
19491949
int g();
1950-
int main() { return g(); } // used to return 42
1950+
int main() { return g(); } // used to return 42
19511951
\end{codeblock}
19521952

19531953
\diffref{dcl.init.aggr}

source/declarations.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,14 +735,16 @@
735735
typedef decltype([]{}) C; // the closure type has no name for linkage purposes
736736
\end{codeblock}
737737
\end{example}
738+
738739
An unnamed class with a typedef name for linkage purposes shall not
739740
\begin{itemize}
740741
\item
741742
declare any members
742743
other than non-static data members, member enumerations, or member classes,
743744
\item
744745
have any base classes or default member initializers, or
745-
contain a lambda-expression,
746+
\item
747+
contain a \grammarterm{lambda-expression},
746748
\end{itemize}
747749
and all member classes shall also satisfy these requirements (recursively).
748750
\begin{example}

0 commit comments

Comments
 (0)