http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54428

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-03 
16:04:25 UTC ---
Author: jakub
Date: Mon Sep  3 16:04:19 2012
New Revision: 190899

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190899
Log:
    Backported from mainline
    2012-08-31  Jakub Jelinek  <ja...@redhat.com>

    PR c/54428
    * c-convert.c (convert): Don't call fold_convert_loc if
    TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
    is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
    COMPLEX_TYPE -> COMPLEX_TYPE conversion.

    * gcc.c-torture/compile/pr54428.c: New test.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr54428.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/c-convert.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog

Reply via email to