From: Benjamin Kosnik Date: Thu, 12 Feb 1998 18:18:51 +0000 (+0000) Subject: decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837 X-Git-Tag: prereleases/egcs-1.1-prerelease~2416 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=2df0603278c758f16d010cc8c67a633a9ac3d1e4;p=gcc.git 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 * decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837 From-SVN: r17881 --- diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 45ab6d949277..829fb6fff307 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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"); }