* c-lex.c (yylex): We can have a number with no digits.
authorJason Merrill <jason@yorick.cygnus.com>
Sat, 7 Aug 1999 01:02:18 +0000 (01:02 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 7 Aug 1999 01:02:18 +0000 (21:02 -0400)
From-SVN: r28561

gcc/ChangeLog
gcc/c-lex.c

index 39868c7..413a4b0 100644 (file)
@@ -1,3 +1,7 @@
+1999-08-06  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * c-lex.c (yylex): We can have a number with no digits.
+
 Fri Aug  6 16:53:55 EDT 1999  John Wehle  (john@feith.com)
 
        * jump.c (delete_prior_computation): New function, broken
index 0201504..34dc5e6 100644 (file)
@@ -1656,8 +1656,9 @@ yylex ()
              }
          }
 
+       /* This can happen on input like `int i = 0x;' */
        if (numdigits == 0)
-         abort ();
+         error ("numeric constant with no digits");
 
        if (largest_digit >= base)
          error ("numeric constant contains digits beyond the radix");