* inftarg.c (child_thread_alive): New function to see if a
[deliverable/binutils-gdb.git] / gdb / c-exp.y
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;
This page took 0.023264 seconds and 4 git commands to generate.