aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-06-28 20:18:27 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-06-28 20:18:27 +0000
commitaf53d23161e42735bc2adbb8236d411a307b574c (patch)
treed60bf264e2d5069a1fe1fc469d71ac7ff063f46a /gdb/c-exp.y
parent9655fd1aecac0e494b53902baaf50cf53f899526 (diff)
downloadgdb-af53d23161e42735bc2adbb8236d411a307b574c.zip
gdb-af53d23161e42735bc2adbb8236d411a307b574c.tar.gz
gdb-af53d23161e42735bc2adbb8236d411a307b574c.tar.bz2
gdb/
Fix PR c++/11703 and PR gdb/1448. * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add FIRST_ITER check. gdb/testsuite/ Test PR c++/11703 and PR gdb/1448. * gdb.cp/namespace.exp (ptype ::C::NestedClass): Remove KFAIL for gdb/1448.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 4db4103..030554c 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -2553,7 +2553,7 @@ yylex (void)
{
token_and_value cc;
memset (&cc, 0, sizeof (token_and_value));
- if (first_was_coloncolon)
+ if (first_was_coloncolon && first_iter)
{
yylval = cc.value;
return COLONCOLON;