This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47473] [4.5 Regression] Incorrect computation with complex numbers when using -std=c99
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 7 Apr 2011 18:24:51 +0000
- Subject: [Bug c/47473] [4.5 Regression] Incorrect computation with complex numbers when using -std=c99
- Auto-submitted: auto-generated
- References: <bug-47473-4@http.gcc.gnu.org/bugzilla/>
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