OSDN Git Service

pedwarn
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 May 2000 19:24:28 +0000 (19:24 +0000)
committerjason <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

index de9195e..aa3e199 100644 (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.  */