https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128241

            Bug ID: 128241
           Summary: Concatenating raw string literals in macros leads to
                    incorrect line count
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: moritz.baumann at sap dot com
  Target Milestone: ---

Created attachment 66004
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66004&action=edit
Failing test case

Concatenating raw string literals in the preprocessor leads to incorrect line
counts that affect diagnostics and debug information. In particular, each
newline in the raw string literal is ultimately counted twice, throwing off the
line number in all subsequent lines. The attached test case showcases the
problem.
  • [Bug preprocessor/128241] New: ... moritz.baumann at sap dot com via Gcc-bugs

Reply via email to