This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 116b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-03-05


2002. White space within preprocessing directives

Section: 15.1  [cpp.pre]     Status: open     Submitter: Richard Smith     Date: 2014-09-10     Liaison: WG14

According to 15.1 [cpp.pre] paragraph 5,

The only white-space characters that shall appear between preprocessing tokens within a preprocessing directive (from just after the introducing # preprocessing token through just before the terminating new-line character) are space and horizontal-tab (including spaces that have replaced comments or possibly other white-space characters in translation phase 3).

The effect of this restriction is unclear, however, since translation phase 3 is permitted to transform all white space characters and comments into spaces. The relationship between these two rules should be clarified.