This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new warnings building cp-demangle.c
- From: Andrew Pinski <pinskia at gmail dot com>
- To: janis187 at us dot ibm dot com
- Cc: Ben Elliston <bje at au1 dot ibm dot com>, iant at google dot com, gcc <gcc at gcc dot gnu dot org>
- Date: Mon, 18 May 2009 17:38:04 -0700
- Subject: Re: new warnings building cp-demangle.c
- References: <1242692901.16289.5.camel@helios> <1242693262.6074.42.camel@janis-laptop>
On Mon, May 18, 2009 at 5:34 PM, Janis Johnson <janis187@us.ibm.com> wrote:
>> The code around line 723 is:
>>
>> Â if (p == NULL
>> Â Â Â || name == NULL
>> Â Â Â || (kind < gnu_v3_complete_object_ctor
>> Â Â Â Â Â && kind > gnu_v3_complete_object_allocating_ctor))
>> Â Â return 0;
>>
>> (and similarly for line 742). ÂA bug?
>
> A much-discussed bug: http://gcc.gnu.org/PR40172
Though this is way different issue from that bug, this code looks wrong.
-- Pinski