aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 0394ae9..3756721 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -1186,6 +1186,8 @@ yylex ()
if (namelen > 2)
{
lexptr = tokstart + namelen;
+ if (lexptr[-1] != '\'')
+ error ("Unmatched single quote.");
namelen -= 2;
tokstart++;
goto tryname;