Commit 7db78d12 authored by jason's avatar jason
Browse files

pedwarn

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33857 138bc75d-0d04-0410-961f-82ee72b054a4
parent f532d265
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment