public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/114423] New: Incorrectly placed caret in the message about expanded _Pragma
@ 2024-03-21 22:20 centurionn009 at gmail dot com
  2024-03-21 22:24 ` [Bug c/114423] " pinskia at gcc dot gnu.org
  2024-03-22 14:48 ` lhyatt at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: centurionn009 at gmail dot com @ 2024-03-21 22:20 UTC (permalink / raw)
  To: gcc-bugs

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
      |           ^

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-22 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-21 22:20 [Bug preprocessor/114423] New: Incorrectly placed caret in the message about expanded _Pragma centurionn009 at gmail dot com
2024-03-21 22:24 ` [Bug c/114423] " pinskia at gcc dot gnu.org
2024-03-22 14:48 ` lhyatt at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).