aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-08-07 01:02:18 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-08-06 21:02:18 -0400
commitadace600117e4a5bf1ac34d13c473284fe9c768b (patch)
treec81ff2c338a793a7f9f00c02e877afe3848aa6d8 /gcc
parent6ad073329cea8de835c2939dfb40c305f5568b72 (diff)
downloadgcc-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')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-lex.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 39868c7..413a4b0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
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");