Fix for PR java/5902
Eric Blake
ebb9@email.byu.edu
Thu Mar 21 20:20:00 GMT 2002
OK to commit mainline and branch? Tested on i686-pc-linux-gnu.
2002-03-21 Eric Blake <ebb9@email.byu.edu>
Fix for PR java/6026:
* lex.c (java_lex): Fix parsing of consecutive floats.
Index: lex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lex.c,v
retrieving revision 1.80.8.2
diff -u -r1.80.8.2 lex.c
--- lex.c 2002/03/12 03:50:39 1.80.8.2
+++ lex.c 2002/03/22 04:18:12
@@ -1158,6 +1158,8 @@
{
if (JAVA_ASCII_DIGIT (c))
seen_digit = 1;
+ if (stage == 2)
+ stage = 3;
literal_token [literal_index++ ] = c;
c = java_get_unicode ();
}
--
This signature intentionally left boring.
Eric Blake ebb9@email.byu.edu
BYU student, free software programmer
More information about the Gcc-patches
mailing list