diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1999-08-07 01:02:18 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1999-08-06 21:02:18 -0400 |
commit | adace600117e4a5bf1ac34d13c473284fe9c768b (patch) | |
tree | c81ff2c338a793a7f9f00c02e877afe3848aa6d8 /gcc/c-lex.c | |
parent | 6ad073329cea8de835c2939dfb40c305f5568b72 (diff) | |
download | gcc-adace600117e4a5bf1ac34d13c473284fe9c768b.zip gcc-adace600117e4a5bf1ac34d13c473284fe9c768b.tar.gz gcc-adace600117e4a5bf1ac34d13c473284fe9c768b.tar.bz2 |
* c-lex.c (yylex): We can have a number with no digits.
From-SVN: r28561
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |