re PR c++/28274 (Redeclaration with extra default argument doesn't work)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Thu, 3 Aug 2006 02:30:49 +0000 (02:30 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 3 Aug 2006 02:30:49 +0000 (02:30 +0000)
commit4a2f6dc05bb975426ff56d3656694684d292efbd
treefafca9eda28c4750146f1b5d20f8b090a70fe978
parent74c5a70c23271e0f9af1a6eb6232a8f90681dbc0
re PR c++/28274 (Redeclaration with extra default argument doesn't work)

PR c++/28274
* decl.c (duplicate_decls): Call check_default_args here.
(start_preparsed_function): Do not call check_default_args.
* name-lookup.c (pushdecl_maybe_friend): Only call
check_default_args if duplicate_decls got bypassed.

* g++.dg/other/default5.C: New test.

From-SVN: r115893
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/default5.C [new file with mode: 0644]