From-SVN: r33857
This commit is contained in:
Jason Merrill 2000-05-11 15:24:28 -04:00
parent c10bffd02f
commit d80c348925

View File

@ -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. */