decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837

d
Thu Feb 12 12:46:51 1998  Benjamin Kosnik  <bkoz@rhino.cygnus.com>
	* decl.c (shadow_tag): Give error for typedef-ing built-in types
Fixes g++/14837

From-SVN: r17881
This commit is contained in:
Benjamin Kosnik 1998-02-12 18:18:51 +00:00
parent ea957dd5f4
commit 2df0603278

View file

@ -5919,7 +5919,7 @@ shadow_tag (declspecs)
}
if (found_tag == 0)
pedwarn ("abstract declarator used as declaration");
cp_error ("abstract declarator used as declaration");
else if (found_tag > 1)
pedwarn ("multiple types in one declaration");
}