re PR c/35430 (ICE with complex arithmetic)
authorJakub Jelinek <jakub@redhat.com>
Tue, 4 Nov 2008 20:51:38 +0000 (21:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 4 Nov 2008 20:51:38 +0000 (21:51 +0100)
commitead51d365447a3441fa087e0f9120b8199d19da2
tree595aa91c7fc54a4edf2a2e8e3b8c3e8535c53bff
parentd2bd00524df2c65cb1b59ffb5ea70207a03a24ca
re PR c/35430 (ICE with complex arithmetic)

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.

Co-Authored-By: Andrew Pinski <andrew_pinski@playstation.sony.com>
From-SVN: r141587
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wsign-compare-2.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr35430.c [new file with mode: 0644]