projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea957dd
)
decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837
author
Benjamin Kosnik
<bkoz@gcc.gnu.org>
Thu, 12 Feb 1998 18:18:51 +0000
(18:18 +0000)
committer
Benjamin 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
patch
|
blob
|
history
diff --git
a/gcc/cp/decl.c
b/gcc/cp/decl.c
index 45ab6d949277156456005709c511d4d686621345..829fb6fff30763bab7d339a5fcc105e1c3d00d51 100644
(file)
--- 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");
}