https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107089
Bug ID: 107089 Summary: Line-terminating '\' leaves the characters when the next-line is a multi-line comment Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: wcs84014 at xcoxc dot com Target Milestone: --- I found it when I tried to use the CPP as a general-purpose macro. ~$ gcc -v Target: x86_64-linux-gnu /gcc version 11.2.0 (Debian 11.2.0-13) ~$ cat a.c 1=\ //xyz ok*/ 2=\ /*xyz NG*/ 3=\(sp)(nl) /*xyz NG*/ 4=\ //*xyz ok:gcc NG:-traditional*/ ~$ cat a.c | cpp -P -C -nostdinc #-traditional-cpp 1=//xyz ok*/ 2=/*xyz z NG*/ <stdin>:9:3: warning: backslash and newline separated by space 3=/*xyz yz NG*/ 4=//*xyz ok:gcc NG:-traditional*/