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/14088] Hexfloat constants with uppercase 0X prefix fail


------- 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


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