[Bug c/14088] Hexfloat constants with uppercase 0X prefix fail
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Mon Feb 9 23:54:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-02-09 23:54 -------
Correct:
--------------------
#include <stdio.h>
#define x1 (double)0x1p1
#define x2 (double)0X1p1
int main ()
{
printf ("%f == %f", x1, x2);
}
------------------------
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc x.c
g/x> ./a.out
2.000000 == 0.000000
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.5.0 3.3.3 |3.5.0 3.3.3 3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14088
More information about the Gcc-bugs
mailing list