From adace600117e4a5bf1ac34d13c473284fe9c768b Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 7 Aug 1999 01:02:18 +0000 Subject: * c-lex.c (yylex): We can have a number with no digits. From-SVN: r28561 --- gcc/c-lex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/c-lex.c') diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 0201504..34dc5e6 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -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"); -- cgit v1.1