* c-exp.y (yylex): Give error if unmatched single quote.
[deliverable/binutils-gdb.git] / gdb / c-exp.y
index 0394ae915728078446a811361ea3e64e6f9e39ef..3756721faf06f8492d5de94a49792fc666d71cec 100644 (file)
@@ -1186,6 +1186,8 @@ yylex ()
          if (namelen > 2)
            {
              lexptr = tokstart + namelen;
+             if (lexptr[-1] != '\'')
+               error ("Unmatched single quote.");
              namelen -= 2;
              tokstart++;
              goto tryname;
This page took 0.023013 seconds and 4 git commands to generate.