This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix -Wsign-compare ICE with complex type (PR c/35430)
- From: Diego Novillo <dnovillo at google dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 4 Nov 2008 06:46:59 -0500
- Subject: Re: [PATCH] Fix -Wsign-compare ICE with complex type (PR c/35430)
- References: <20081104110706.GB1057@tyan-ft48-01.lab.bos.redhat.com>
On Tue, Nov 4, 2008 at 06:07, Jakub Jelinek <jakub@redhat.com> wrote:
> 2008-11-04 Jakub Jelinek <jakub@redhat.com>
> Andrew Pinski <andrew_pinski@playstation.sony.com>
>
> PR c/35430
> * c-common.c (warn_for_sign_compare): For complex result_type
> use component's type.
>
> * gcc.dg/pr35430.c: New test.
> * g++.dg/warn/Wsign-compare-2.C: New test.
OK.
Diego.