* c-exp.y (yylex): Make an empty character constant an error.
This commit is contained in:
parent
de906b511e
commit
961b8ebd27
@ -1,3 +1,7 @@
|
||||
Wed Mar 15 10:58:26 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||
|
||||
* c-exp.y (yylex): Make an empty character constant an error.
|
||||
|
||||
Tue Mar 14 15:00:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
|
||||
|
||||
* valops.c (value_arg_coerce): Do possible value_coerce_array
|
||||
|
@ -1177,6 +1177,8 @@ yylex ()
|
||||
c = *lexptr++;
|
||||
if (c == '\\')
|
||||
c = parse_escape (&lexptr);
|
||||
else if (c == '\'')
|
||||
error ("Empty character constant.");
|
||||
|
||||
yylval.typed_val.val = c;
|
||||
yylval.typed_val.type = builtin_type_char;
|
||||
|
Loading…
Reference in New Issue
Block a user