Skip to content

Commit 661e259

Browse files
committed
CWG3016 Satisfying the syntactic requirements of #include and #embed
Wording reconciled with earlier CWG3015.
1 parent 91b1a21 commit 661e259

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/preprocessor.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,9 @@
413413
is searched for as if that preprocessing token sequence
414414
were the \grammarterm{pp-tokens} of a \tcode{\#include} directive,
415415
except that no further macro expansion is performed.
416-
If such a directive would not satisfy the syntactic requirements
417-
of a \tcode{\#include} directive, the program is ill-formed.
416+
If the preprocessing token sequence does not consist solely of a \grammarterm{header-name}
417+
or cannot be combined\iref{cpp.include} into a single
418+
\grammarterm{header-name} preprocessing token, the program is ill-formed.
418419
The \grammarterm{has-include-expression} evaluates
419420
to \tcode{1} if the search for the source file succeeds, and
420421
to \tcode{0} if the search fails.
@@ -425,8 +426,6 @@
425426
preprocessing token sequence were the \grammarterm{pp-tokens}
426427
of a \tcode{\#embed} directive\iref{cpp.embed},
427428
except that no further macro expansion is performed.
428-
If such a directive would not satisfy the syntactic requirements of a
429-
\tcode{\#embed} directive, the program is ill-formed.
430429
The \grammarterm{has-embed-expression} evaluates to:
431430
\begin{itemize}
432431
\item

0 commit comments

Comments
 (0)