From 543ca912c85986884ba869742ec78488950742ea Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 12 Jan 2004 15:25:16 +0000 Subject: [PATCH] parser.c (cp_parser_decl_specifier_seq): Add parenthetical clauses to comments describing declares_class_or_enum. * parser.c (cp_parser_decl_specifier_seq): Add parenthetical clauses to comments describing declares_class_or_enum. (cp_parser_type_specifier): Set *declares_class_or_enum to 0, not false. From-SVN: r75723 --- gcc/cp/ChangeLog | 7 +++++++ gcc/cp/parser.c | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d721909963b..a8b4781ac44 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2004-01-12 Ian Lance Taylor + + * parser.c (cp_parser_decl_specifier_seq): Add parenthetical + clauses to comments describing declares_class_or_enum. + (cp_parser_type_specifier): Set *declares_class_or_enum to 0, not + false. + 2004-01-12 Jan Hubicka * pt.c (for_each_template_parm): Do not check for duplicates. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 2f5c9d91d74..866012644ce 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -6528,11 +6528,12 @@ cp_parser_simple_declaration (cp_parser* parser, friendship is granted might not be a class. *DECLARES_CLASS_OR_ENUM is set to the bitwise or of the following - *flags: + flags: 1: one of the decl-specifiers is an elaborated-type-specifier + (i.e., a type declaration) 2: one of the decl-specifiers is an enum-specifier or a - class-specifier + class-specifier (i.e., a type definition) */ @@ -8514,7 +8515,7 @@ cp_parser_type_specifier (cp_parser* parser, /* Assume this type-specifier does not declare a new type. */ if (declares_class_or_enum) - *declares_class_or_enum = false; + *declares_class_or_enum = 0; /* And that it does not specify a cv-qualifier. */ if (is_cv_qualifier) *is_cv_qualifier = false; -- 2.30.2