aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@gcc.gnu.org>1998-02-12 18:18:51 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>1998-02-12 18:18:51 +0000
commit2df0603278c758f16d010cc8c67a633a9ac3d1e4 (patch)
tree88003d166d3e3e3d371e7fd6999d7abc4eafb684 /gcc
parentea957dd5f430405b4b7cfbbc8c85976478c80a35 (diff)
downloadgcc-2df0603278c758f16d010cc8c67a633a9ac3d1e4.zip
gcc-2df0603278c758f16d010cc8c67a633a9ac3d1e4.tar.gz
gcc-2df0603278c758f16d010cc8c67a633a9ac3d1e4.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 45ab6d9..829fb6f 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");
}