Re: [C PATCH] Add 'aka's on type printing in diagnostics

2014-11-04 Thread Jeff Law
On 10/25/14 09:16, Marek Polacek wrote: This patch teaches the compiler to also print the typedef-stripped version of a type when appropriate. C++ FE does this for a few years now. With this patch we're able to say note: expected 'B * {aka struct A *}' but argument is of type 'struct B *' Compa

Re: [C PATCH] Add 'aka's on type printing in diagnostics

2014-10-29 Thread Joseph S. Myers
On Sat, 25 Oct 2014, Marek Polacek wrote: > + pp_c_ws_string (cpp, "aka"); That should be _("aka"), as it's an English word, not a C syntax construct. OK with that change. -- Joseph S. Myers jos...@codesourcery.com

[C PATCH] Add 'aka's on type printing in diagnostics

2014-10-25 Thread Marek Polacek
This patch teaches the compiler to also print the typedef-stripped version of a type when appropriate. C++ FE does this for a few years now. With this patch we're able to say note: expected 'B * {aka struct A *}' but argument is of type 'struct B *' Compare that with note: expected 'struct B *' b