This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/47473] [4.5 Regression] Incorrect computation with complex numbers when using -std=c99


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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-07 18:24:45 UTC ---
Author: jakub
Date: Thu Apr  7 18:24:43 2011
New Revision: 172113

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172113
Log:
    Backported from mainline
    2011-01-26  Jakub Jelinek  <jakub@redhat.com>

    PR c/47473
    * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
    EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
    REAL_TYPE.

    * gcc.dg/torture/pr47473.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/torture/pr47473.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/c-lex.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]