]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c/47473 (Incorrect computation with complex numbers when using -std...
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Apr 2011 18:24:43 +0000 (20:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Apr 2011 18:24:43 +0000 (20:24 +0200)
commit87090c9335dddf1d19766220e3ca9b4f6f5a1029
tree4897bb3cd01c5ffcabadfd15742f9d64d15a64e1
parent5fea577bd07eaa4cd4ee6d7bf4f7e80e9f2bf842
backport: re PR c/47473 (Incorrect computation with complex numbers when using -std=c99)

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.

From-SVN: r172113
gcc/ChangeLog
gcc/c-lex.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr47473.c [new file with mode: 0644]