http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55252



Jonathan Wakely <redi at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |manu at gcc dot gnu.org



--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-09 
18:08:40 UTC ---

clang++ gets this right, printing the same thing with or without the

system_header pragma, and swapping the locations of the error and the note:



In file included from test.cc:2:

./header.h:1:5: error: expected unqualified-id

int bar = 0;

    ^

test.cc:1:13: note: expanded from macro 'bar'

#define bar 1

            ^

1 error generated.





This makes much more sense.

Reply via email to