Commit 2df06032 by Benjamin Kosnik

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
parent ea957dd5
...@@ -5919,7 +5919,7 @@ shadow_tag (declspecs) ...@@ -5919,7 +5919,7 @@ shadow_tag (declspecs)
} }
if (found_tag == 0) if (found_tag == 0)
pedwarn ("abstract declarator used as declaration"); cp_error ("abstract declarator used as declaration");
else if (found_tag > 1) else if (found_tag > 1)
pedwarn ("multiple types in one declaration"); pedwarn ("multiple types in one declaration");
} }
......
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