aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 17242ba..2f57d9d 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));
}
}