Skip to content

Commit 49b1fc4

Browse files
committed
[cpp.module] Note that private module fragments are not partitions
Add a note to avoid repeating the confusion behind NB US US 56-103. The grammar production for pp-global-module-fragment is pages away from where it would otherwise match as an ill-formed module partition.
1 parent 002e978 commit 49b1fc4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/preprocessor.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,11 @@
12531253
the \grammarterm{pp-module-name} or \grammarterm{pp-module-partition}
12541254
shall currently be defined as an object-like macro.
12551255

1256+
\begin{note}
1257+
A \grammarterm{pp-private-module-fragment} is not a
1258+
\grammarterm{pp-module-partition} without a \grammarterm{pp-module-name}.
1259+
\end{note}
1260+
12561261
\pnum
12571262
Any preprocessing tokens after the \tcode{module} preprocessing token
12581263
in the \tcode{module} directive are processed just as in normal text.

0 commit comments

Comments
 (0)