* parser.c (cp_parser_set_decl_spec_type): Fix thinko.
authorMark Mitchell <mark@codesourcery.com>
Mon, 28 Jun 2004 07:39:08 +0000 (07:39 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 28 Jun 2004 07:39:08 +0000 (07:39 +0000)
From-SVN: r83764

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

index aaf1956488eb46fcdd570531a40d63feff9ba13d..756bc919d021402b350142257258f426a0590ae7 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 174c56a5e1d44effdb04511f6ece47158e4d831d..56605de72de955ad565eb22a353a4238efb659bb 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;
     }
 }