aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/parser.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index b4ebd70..72fbb8b 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
2004-07-20 Mark Mitchell <mark@codesourcery.com>
+ * 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 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,