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

            Bug ID: 114423
           Summary: Incorrectly placed caret in the message about expanded
                    _Pragma
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: centurionn009 at gmail dot com
  Target Milestone: ---

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

Diagnostics working with _Pragma from macro puts a caret in position same as
directly inside the macro.
```
_Pragma("GCC error \"message\"")

#define err \
_Pragma("GCC error \"message\"")

err
```

gcc -E:
<source>:1:11: error: message
    1 | _Pragma("GCC error \"message\"")
      |           ^~~~~~~~~
<source>:6:11: error: message
    6 | err
      |           ^

Reply via email to