OSDN Git Service

* parser.c (cp_parser_decl_specifier_seq): Add parenthetical
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jan 2004 15:25:16 +0000 (15:25 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jan 2004 15:25:16 +0000 (15:25 +0000)
clauses to comments describing declares_class_or_enum.
(cp_parser_type_specifier): Set *declares_class_or_enum to 0, not
false.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75723 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/parser.c

index d721909..a8b4781 100644 (file)
@@ -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.
index 2f5c9d9..8660126 100644 (file)
@@ -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;