]> gcc.gnu.org Git - gcc.git/commitdiff
decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 12 Feb 1998 18:18:51 +0000 (18:18 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 12 Feb 1998 18:18:51 +0000 (18:18 +0000)
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

gcc/cp/decl.c

index 45ab6d949277156456005709c511d4d686621345..829fb6fff30763bab7d339a5fcc105e1c3d00d51 100644 (file)
@@ -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");
     }
This page took 1.407338 seconds and 5 git commands to generate.