Skip to content

Commit 1372087

Browse files
committed
[ub.cpp.concat] Remove universal-character-name formation from ##; now well-defined
1 parent 2ce67b5 commit 1372087

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Diff for: source/ub.tex

-15
Original file line numberDiff line numberDiff line change
@@ -1660,21 +1660,6 @@
16601660

16611661
\rSec2[ub.cpp.concat]{The \#\# operator}
16621662

1663-
\pnum
1664-
\ubxref{cpp.concat.universal.char} \\
1665-
If a character sequence that matches the syntax of a \grammarterm{universal-character-name}
1666-
is produced by token concatenation \iref{cpp.concat}, the behavior is undefined.
1667-
1668-
\pnum
1669-
\begin{example}
1670-
\begin{codeblock}
1671-
#define GUARD_NAME ï ## _GUARD // undefined behavior, character sequence produced contains
1672-
// a \grammarterm{universal-character-name}
1673-
#define COLUMN ï ##_column // undefined behavior, character sequence produced contains
1674-
// a \grammarterm{universal-character-name}
1675-
\end{codeblock}
1676-
\end{example}
1677-
16781663
\pnum
16791664
\ubxref{cpp.concat.invalid.preprocessing.token} \\
16801665
If an invalid preprocessing token results from using the concat operator the behavior is undefined.

0 commit comments

Comments
 (0)