diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 17242ba3457..2f57d9d7a36 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -10732,7 +10732,7 @@ cp_parser_direct_declarator (cp_parser* parser, TYPE_IDENTIFIER (scope)); /* Build a new DECLARATOR. */ declarator = build_nt (SCOPE_REF, - scope, + type, TREE_OPERAND (declarator, 1)); } }