mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-27 21:15:20 +08:00
pedwarn
From-SVN: r33857
This commit is contained in:
parent
c10bffd02f
commit
d80c348925
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user