public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "centurionn009 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/114423] New: Incorrectly placed caret in the message about expanded _Pragma
Date: Thu, 21 Mar 2024 22:20:58 +0000	[thread overview]
Message-ID: <bug-114423-4@http.gcc.gnu.org/bugzilla/> (raw)

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	other threads:[~2024-03-21 22:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-21 22:20 centurionn009 at gmail dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-114423-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).