Commit adace600 by Jason Merrill Committed by Jason Merrill

* c-lex.c (yylex): We can have a number with no digits.

From-SVN: r28561
parent 6ad07332
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) Fri Aug 6 16:53:55 EDT 1999 John Wehle (john@feith.com)
* jump.c (delete_prior_computation): New function, broken * jump.c (delete_prior_computation): New function, broken
......
...@@ -1656,8 +1656,9 @@ yylex () ...@@ -1656,8 +1656,9 @@ yylex ()
} }
} }
/* This can happen on input like `int i = 0x;' */
if (numdigits == 0) if (numdigits == 0)
abort (); error ("numeric constant with no digits");
if (largest_digit >= base) if (largest_digit >= base)
error ("numeric constant contains digits beyond the radix"); error ("numeric constant contains digits beyond the radix");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment