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:
parent
ea957dd5f4
commit
2df0603278
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue