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/4.6 Regression] Incorrect computation with complex numbers when using -std=c99


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-26 20:07:02 UTC ---
Author: jakub
Date: Wed Jan 26 20:06:57 2011
New Revision: 169299

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169299
Log:
    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:
    trunk/gcc/testsuite/gcc.dg/torture/pr47473.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-lex.c
    trunk/gcc/testsuite/ChangeLog


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