This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR c++/35635 -Wconversion problematic with bitfields
- From: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- To: "Gcc Patch List" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 12 Aug 2008 16:50:06 +0200
- Subject: Re: PR c++/35635 -Wconversion problematic with bitfields
2008/8/12 Joseph S. Myers <joseph@codesourcery.com>:
> On Tue, 5 Aug 2008, Manuel López-Ibáñez wrote:
>
>> 2008-08-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>>
>> PR 35635
>> * c-common.c (conversion_warning): Use a switch. Ignore boolean
>> expressions except for conversions to signed:1 bitfields. Handle
>> COND_EXPR with constant operands.
>>
>> testsuite/
>> * gcc.dg/pr35635.c: New.
>> * gcc.dg/Wconversion-integer.c: Update.
>> * gcc.dg/Wconversion-integer-no-sign.c: Update.
>> * gcc.dg/Wsign-conversion.c: Update.
>
> The C testcases and the substantive parts of the c-common.c patch are OK.
So only the C++ testcases need review...