decl.c (start_decl): Always pedwarn about vacuously redeclaring a member.
authorJason Merrill <jason@gcc.gnu.org>
Thu, 28 May 1998 01:44:29 +0000 (21:44 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 28 May 1998 01:44:29 +0000 (21:44 -0400)
commitb7698cf042b922cfa0e38695ab90e441faae301e
tree3fca0107f5cf12fee362a2925b2bcb8a438c2217
parentbe3a14bbbb8b161df688059270fe67cf498cfa14
decl.c (start_decl): Always pedwarn about vacuously redeclaring a member.

* decl.c (start_decl): Always pedwarn about vacuously redeclaring
a member.
(start_function): Call check_default_args.
* decl2.c (grokfield): Don't call check_default_args.
(check_default_args): Use cp_error_at.
* lex.c (do_pending_defargs): Call check_default_args.
* call.c (build_scoped_method_call): Make sure get_type_value returns
something before we try to use its TYPE_MAIN_VARIANT.

From-SVN: r20113
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/lex.c