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 middle-end/19983] __builtin_nan should allow 0X as well as 0x


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-15 21:28 -------
The bug is very obvious from the code:
      if (*str == '0')
        {
          if (*++str == 'x')
            str++, base = 16;
          else
            base = 8;
        }

Note no check for the upercase version of 'X'.  (yes I know about the talk about -fwide-exec-charset= 
and -finput-charset=).

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19983


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