This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH preprocessor, diagnostics] PR preprocessor/53229 - Fix diagnostics location when pasting tokens
- From: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- To: Dodji Seketeli <dodji at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Tom Tromey <tromey at redhat dot com>, Gabriel Dos Reis <gdr at integrable-solutions dot net>, Jason Merrill <jason at redhat dot com>
- Date: Tue, 15 May 2012 13:30:15 +0200
- Subject: Re: [PATCH preprocessor, diagnostics] PR preprocessor/53229 - Fix diagnostics location when pasting tokens
- References: <m3bolpofpx.fsf@redhat.com>
On 15 May 2012 13:18, Dodji Seketeli <dodji@redhat.com> wrote:
>
> People seem to like screenshots.
>
> Thus, after the patch, we now have:
>
> ? ?$ cc1 -quiet test.c
> ? ?test.c: In function 'foo':
> ? ?test.c:6:18: error: pasting "." and "i" does not give a valid preprocessing token
> ? ? #define TEST(X) x.##X
> ? ? ? ? ? ? ? ? ? ? ?^
> ? ?test.c:10:3: note: in expansion of macro 'TEST'
> ? ? ? TEST(i) = 0;
> ? ? ? ^
> ? ?$
I like the screenshot. ;-)
Thanks for fixing this!
Cheers,
Manuel.