2002-03-21 Eric Blake <ebb9@email.byu.edu>
authorericb <ericb@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Mar 2002 00:01:49 +0000 (00:01 +0000)
committerericb <ericb@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Mar 2002 00:01:49 +0000 (00:01 +0000)
Fix for PR java/6026:
* lex.c (java_lex): Fix parsing of consecutive floats.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51207 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/lex.c

index 2df70b6..1cc0096 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-21  Eric Blake  <ebb9@email.byu.edu>
+
+       Fix for PR java/6026:
+       * lex.c (java_lex): Fix parsing of consecutive floats.
+
 2002-03-21  Tom Tromey  <tromey@redhat.com>
 
        * parse.y (build_access_to_thisn): Stop when FROM is not an inner
index 4f7f8f7..6e255d1 100644 (file)
@@ -1154,6 +1154,8 @@ java_lex (java_lval)
                {
                  if (JAVA_ASCII_DIGIT (c))
                    seen_digit = 1;
+                  if (stage == 2)
+                    stage = 3;
                  literal_token [literal_index++ ] = c;
                  c = java_get_unicode ();
                }