aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 2cd9f51..fde2c79 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -9468,8 +9468,9 @@ cp_parser_simple_type_specifier (cp_parser* parser,
/* Look for the optional `::' operator. */
global_p
- = cp_parser_global_scope_opt (parser,
- /*current_scope_valid_p=*/false);
+ = (cp_parser_global_scope_opt (parser,
+ /*current_scope_valid_p=*/false)
+ != NULL_TREE);
/* Look for the nested-name specifier. */
qualified_p
= (cp_parser_nested_name_specifier_opt (parser,