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

2026-06-25


3205. Prefer header-name over user-defined-string-literal

Section: 5.5  [lex.pptoken]     Status: open     Submitter: Richard Smith     Date: 2026-06-24

Consider:

  #define SUFFIX
  #include "foo.h"SUFFIX

The "foo.h" should be lexed as a header-name, not as a user-defined-string-literal.

Suggested resolution:

Change in 5.5 [lex.pptoken] bullet 5.4.1 as follows: