* c-exp.y (yylex): Make an empty character constant an error.
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 15 Mar 1995 19:18:26 +0000 (19:18 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 15 Mar 1995 19:18:26 +0000 (19:18 +0000)
gdb/ChangeLog
gdb/c-exp.y

index 013bf0933b7a6bcfe796d1188e1418e135e6a437..bfc9b89d3ca332a273a4bc208162b28637c82e31 100644 (file)
@@ -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
index f31dc0759c8775139ab859ccd1454001770d8f7a..74b962d8d2bf774ee17bf210a95c6e0741c7377f 100644 (file)
@@ -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;