Commit 543ca912 by Ian Lance Taylor Committed by Ian Lance Taylor

parser.c (cp_parser_decl_specifier_seq): Add parenthetical clauses to comments…

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
parent c1e39976
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> 2004-01-12 Jan Hubicka <jh@suse.cz>
* pt.c (for_each_template_parm): Do not check for duplicates. * pt.c (for_each_template_parm): Do not check for duplicates.
......
...@@ -6528,11 +6528,12 @@ cp_parser_simple_declaration (cp_parser* parser, ...@@ -6528,11 +6528,12 @@ cp_parser_simple_declaration (cp_parser* parser,
friendship is granted might not be a class. friendship is granted might not be a class.
*DECLARES_CLASS_OR_ENUM is set to the bitwise or of the following *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 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 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, ...@@ -8514,7 +8515,7 @@ cp_parser_type_specifier (cp_parser* parser,
/* Assume this type-specifier does not declare a new type. */ /* Assume this type-specifier does not declare a new type. */
if (declares_class_or_enum) if (declares_class_or_enum)
*declares_class_or_enum = false; *declares_class_or_enum = 0;
/* And that it does not specify a cv-qualifier. */ /* And that it does not specify a cv-qualifier. */
if (is_cv_qualifier) if (is_cv_qualifier)
*is_cv_qualifier = false; *is_cv_qualifier = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment