re PR c++/31780 (ICE with incompatible types for ?: with "complex type" conversion)
authorJason Merrill <jason@redhat.com>
Fri, 25 Jan 2008 19:45:11 +0000 (14:45 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 25 Jan 2008 19:45:11 +0000 (14:45 -0500)
commitb6219f420890d1f8e4eb4bc586499c75f4612f38
treed63ed006c4a66749f6e6342f438d45f7bd2ec881
parent7fa4b30a1674de01bf12aef706415e876aa08e4f
re PR c++/31780 (ICE with incompatible types for ?: with "complex type" conversion)

        PR c++/31780
        * call.c (standard_conversion): Allow conversion from integer/real
        to complex.
        (compare_ics): Such a conversion is worse than a normal arithmetic
        conversion.

Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r131832
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/ext/complex3.C [new file with mode: 0644]