From 2df0603278c758f16d010cc8c67a633a9ac3d1e4 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Thu, 12 Feb 1998 18:18:51 +0000 Subject: [PATCH] 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 --- gcc/cp/decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 45ab6d94927..829fb6fff30 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"); } -- 2.30.2