Commit 73ae5c34 by Nathan Sidwell Committed by Nathan Sidwell

decl.c (check_tag_decl): Diagnose typename's which don't declare anything.

	* decl.c (check_tag_decl): Diagnose typename's which don't
	declare anything.

From-SVN: r35627
parent 9eba0801
2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
* decl.c (check_tag_decl): Diagnose typename's which don't
declare anything.
2000-08-10 Nathan Sidwell <nathan@codesourcery.com>
* init.c (build_aggr_init): Reject bogus array initializers
......
......@@ -6968,7 +6968,8 @@ check_tag_decl (declspecs)
{
++found_type;
if (IS_AGGR_TYPE (value) || TREE_CODE (value) == ENUMERAL_TYPE)
if ((TREE_CODE (value) != TYPENAME_TYPE && IS_AGGR_TYPE (value))
|| TREE_CODE (value) == ENUMERAL_TYPE)
{
my_friendly_assert (TYPE_MAIN_DECL (value) != NULL_TREE, 261);
t = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment