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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-03-21
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |diagnostic
          Component|preprocessor                |c

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

clang produces:
```
<source>:2:1: error: message
    2 | _Pragma("GCC error \"message\"")
      | ^
<scratch space>:2:6: note: expanded from here
    2 |  GCC error "message"
      |      ^
<source>:7:1: error: message
    7 | err
      | ^
<source>:4:13: note: expanded from macro 'err'
    4 | #define err \
      |             ^
<scratch space>:4:6: note: expanded from here
    4 |  GCC error "message"
      |      ^
```

I wonder if GCC is doing something similar to get the column info and then
still using the original line.

Reply via email to