PATCH RFA: -Wc++-compat warn about typedef/tag conflict

Ian Lance Taylor iant@google.com
Fri May 15 19:39:00 GMT 2009


Gabriel Dos Reis <dosreis@gmail.com> writes:

> I was wondering whether it would not be simpler to move
> the typedef
>
>
> typedef struct convert_optab_d *convert_optab;
>
> before the definition of convert_optab_d so that you just
> use convert_optab as opposed to the more convoluted/verbose
>
>     struct convert_optab_d *
>
> in function parameters.

We could certainly do that in many cases.  I kept my patch mechanical to
make it simpler.

For several of the structs I changed, it was clear that the intention
was to normally use struct XXX, but a typedef was required to use a VEC.

Ian



More information about the Gcc-patches mailing list