This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR 15236 pedantic switch modifies treatment of non-ISO compliant enumerations
- From: Tom Tromey <tromey at redhat dot com>
- To: Manuel LÃpez-IbÃÃez <lopezibanez at gmail dot com>
- Cc: "Gcc Patch List" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 08 Aug 2008 10:00:25 -0600
- Subject: Re: PR 15236 pedantic switch modifies treatment of non-ISO compliant enumerations
- References: <6c33472e0808051220y6344435cwd9fe9c5a686bf9be@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "Manuel" == Manuel LÃpez-IbÃÃez <lopezibanez@gmail.com> writes:
Manuel> (build_enumerator): Take a location parameter. Give a pedwarn but do
Manuel> not perform any conversion.
Manuel> * c-parser.c (c_parser_enum_specifier): Set correct location for enumerator.
I just wanted to say -- I like the change to pass the location here
and I think the C and C++ front ends need a bit more of this... not
just for errors but also to set locations on exprs.
thanks,
Tom