* parser.c (cp_parser_set_decl_spec_type): Fix thinko.

From-SVN: r83764
This commit is contained in:
Mark Mitchell 2004-06-28 07:39:08 +00:00 committed by Mark Mitchell
parent 986ca4b110
commit 0a73e37f4f
2 changed files with 13 additions and 1 deletions

View 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

View 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;
}
}