From da7404533a349c82050d029dfd7d24e168e743f9 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 20 Jul 2004 19:13:36 +0000 Subject: [PATCH] * parser.c (cp_parser_simple_type_specifier): Fix typo. From-SVN: r84966 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/parser.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b4ebd70c931..72fbb8b07d2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2004-07-20 Mark Mitchell + * parser.c (cp_parser_simple_type_specifier): Fix typo. + PR c++/16637 * parser.c (cp_parser_simple_type_specifier): Do not record usage of globally-qualified names. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 2cd9f510e9a..fde2c79341d 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, -- 2.30.2