This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r115895 - in /branches/gcc-4_0-branch/gcc: cp/C...
- From: reichelt at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 03 Aug 2006 02:41:33 -0000
- Subject: r115895 - in /branches/gcc-4_0-branch/gcc: cp/C...
Author: reichelt
Date: Thu Aug 3 02:41:33 2006
New Revision: 115895
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115895
Log:
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.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/default5.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/decl.c
branches/gcc-4_0-branch/gcc/cp/name-lookup.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog