forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user