aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@wasabisystems.com>2004-01-12 15:25:16 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2004-01-12 15:25:16 +0000
commit543ca912c85986884ba869742ec78488950742ea (patch)
tree0dcde22acee79dd1915af9406fee11208f662d80 /gcc
parentc1e39976c9610d2fcce9cb959db1f113d6a0402d (diff)
downloadgcc-543ca912c85986884ba869742ec78488950742ea.zip
gcc-543ca912c85986884ba869742ec78488950742ea.tar.gz
gcc-543ca912c85986884ba869742ec78488950742ea.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/parser.c7
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;