diff options
| -rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
| -rw-r--r-- | gcc/cp/parser.c | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d721909..a8b4781 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2004-01-12 Ian Lance Taylor <ian@wasabisystems.com> + + * 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 <jh@suse.cz> * pt.c (for_each_template_parm): Do not check for duplicates. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 2f5c9d9..8660126 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; |
