Skip to content

Commit 6280657

Browse files
burblebeetkoeppe
authored andcommitted
CWG2927 Unclear status of translation unit with module keyword
1 parent 5225f68 commit 6280657

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/preprocessor.tex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,16 @@
216216
\pnum
217217
A sequence of preprocessing tokens is only a \grammarterm{text-line}
218218
if it does not begin with a directive-introducing token.
219+
\begin{example}
220+
\begin{codeblock}
221+
using module = int;
222+
module i; // not a \grammarterm{text-line} and not a \grammarterm{control-line}
223+
int foo() {
224+
return i;
225+
}
226+
\end{codeblock}
227+
The example is not a valid \grammarterm{preprocessing-file}.
228+
\end{example}
219229
A sequence of preprocessing tokens is only a \grammarterm{conditionally-supported-directive}
220230
if it does not begin with any of the directive names
221231
appearing after a \tcode{\#} in the syntax.

0 commit comments

Comments
 (0)