This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14088] Hexfloat constants with uppercase 0X prefix fail
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2004 23:54:04 -0000
- Subject: [Bug c/14088] Hexfloat constants with uppercase 0X prefix fail
- References: <20040209234100.14088.dannysmith@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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