* parser.c (cp_parser_set_decl_spec_type): Fix thinko.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jun 2004 07:39:08 +0000 (07:39 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jun 2004 07:39:08 +0000 (07:39 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83764 138bc75d-0d04-0410-961f-82ee72b054a4

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

index aaf1956..756bc91 100644 (file)
@@ -1,3 +1,7 @@
+2004-06-28  Mark Mitchell  <mark@codesourcery.com>
+
+       * parser.c (cp_parser_set_decl_spec_type): Fix thinko.
+
 2004-06-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        PR c++/14123    
index 174c56a..56605de 100644 (file)
@@ -15439,13 +15439,21 @@ cp_parser_set_decl_spec_type (cp_decl_specifier_seq *decl_specs,
          || decl_specs->specs[(int) ds_short]
          || decl_specs->specs[(int) ds_unsigned]
          || decl_specs->specs[(int) ds_signed]))
-    decl_specs->redefined_builtin_type = type_spec;
+    {
+      decl_specs->redefined_builtin_type = type_spec;
+      if (!decl_specs->type)
+       {
+         decl_specs->type = type_spec;
+         decl_specs->user_defined_type_p = false;
+       }
+    }
   else if (decl_specs->type)
     decl_specs->multiple_types_p = true;
   else
     {
       decl_specs->type = type_spec;
       decl_specs->user_defined_type_p = user_defined_p;
+      decl_specs->redefined_builtin_type = NULL_TREE;
     }
 }