diff options
| -rw-r--r-- | gcc/cp/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index de9195e..aa3e199 100644 --- 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. */ |
