diff options
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index f80c260..9c157c2 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -10424,7 +10424,10 @@ cp_parser_declarator_id (cp_parser* parser) /* If the name was qualified, create a SCOPE_REF to represent that. */ if (parser->scope) - id_expression = build_nt (SCOPE_REF, parser->scope, id_expression); + { + id_expression = build_nt (SCOPE_REF, parser->scope, id_expression); + parser->scope = NULL_TREE; + } return id_expression; } |