re PR java/6026 (float literals in expressions are not properly recognized)
authorEric Blake <ebb9@email.byu.edu>
Sat, 23 Mar 2002 00:01:49 +0000 (00:01 +0000)
committerEric Blake <ericb@gcc.gnu.org>
Sat, 23 Mar 2002 00:01:49 +0000 (00:01 +0000)
2002-03-21  Eric Blake  <ebb9@email.byu.edu>

Fix for PR java/6026:
* lex.c (java_lex): Fix parsing of consecutive floats.

From-SVN: r51207

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

index 2df70b6caa85536af6c51b7746e74f4f1c87360f..1cc00969b0be262a7f53c6e97f17ef485b7d58b3 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 4f7f8f7691670413488fc9c3f627932a9de70319..6e255d1ecff850022c1aa18dc4d39ffe3de95063 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 ();
                }