This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/19983] __builtin_nan should allow 0X as well as 0x
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Feb 2005 21:28:07 -0000
- Subject: [Bug middle-end/19983] __builtin_nan should allow 0X as well as 0x
- References: <20050215210354.19983.jsm28@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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