OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f532d26
)
pedwarn
author
jason
<jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 May 2000 19:24:28 +0000
(19:24 +0000)
committer
jason
<jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 May 2000 19:24:28 +0000
(19:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33857
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/cp/class.c
patch
|
blob
|
history
diff --git
a/gcc/cp/class.c
b/gcc/cp/class.c
index
de9195e
..
aa3e199
100644
(file)
--- a/
gcc/cp/class.c
+++ b/
gcc/cp/class.c
@@
-3447,7
+3447,7
@@
check_field_decls (t, access_decls, empty_p,
user-defined constructor. */
if (DECL_NAME (x) == constructor_name (t)
&& TYPE_HAS_CONSTRUCTOR (t))
- cp_
error
_at ("field `%#D' with same name as class", x);
+ cp_
pedwarn
_at ("field `%#D' with same name as class", x);
/* We set DECL_C_BIT_FIELD in grokbitfield.
If the type and width are valid, we'll also set DECL_BIT_FIELD. */