This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH preprocessor, diagnostics] PR preprocessor/53229 - Fix diagnostics location when pasting tokens


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]