diff options
author | Stephen L Moshier <moshier@mediaone.net> | 1999-10-31 04:44:09 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-10-30 22:44:09 -0600 |
commit | 5630b4635d4700da4f253ab7769d32cf662aee1b (patch) | |
tree | bdc3a87a85a521773e724d9a1d061fb3b4d73d97 | |
parent | 2949a9b6d71fa3fe581b43387f677a1503adad85 (diff) | |
download | gcc-5630b4635d4700da4f253ab7769d32cf662aee1b.zip gcc-5630b4635d4700da4f253ab7769d32cf662aee1b.tar.gz gcc-5630b4635d4700da4f253ab7769d32cf662aee1b.tar.bz2 |
* lex.c (yylex): Accept 'f' in mantissa of hex float constant.
From-SVN: r30285
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/lex.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f430d58..ab55f8f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Sat Oct 30 22:42:50 1999 Stephen L Moshier <moshier@mediaone.net> + + * lex.c (yylex): Accept 'f' in mantissa of hex float constant. + 1999-10-30 Mark Mitchell <mark@codesourcery.com> * decl.c (pop_cp_function_context): Don't call free on a NULL diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index b4d973a..a672bd0 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -3850,7 +3850,9 @@ real_yylex () || (ISALNUM (c) && c != 'l' && c != 'L' && c != 'u' && c != 'U' && c != 'i' && c != 'I' && c != 'j' && c != 'J' - && (floatflag == NOT_FLOAT || ((c != 'f') && (c != 'F'))))) + && (floatflag == NOT_FLOAT + || ((base != 16) && (c != 'f') && (c != 'F')) + || base == 16))) { if (c == '.') { |