* 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 39868c765ec360d173f151574b8f7d6a5e544ea2..413a4b08d0d35e63c855ecc4006492927721ee92 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 0201504a59271ce122bf89365c1134aed5173335..34dc5e6290178f51d2fc0f51ec54928cc5c5b613 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");