This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34691] [4.3/4.4/4.5 Regression] Default argument checking not performed after overload resolution with C linkage
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Apr 2009 03:55:13 -0000
- Subject: [Bug c++/34691] [4.3/4.4/4.5 Regression] Default argument checking not performed after overload resolution with C linkage
- References: <bug-34691-15588@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from jason at gcc dot gnu dot org 2009-04-08 03:55 -------
Subject: Bug 34691
Author: jason
Date: Wed Apr 8 03:55:00 2009
New Revision: 145710
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145710
Log:
PR c++/34691
* name-lookup.c (merge_functions): Keep multiple extern C functions.
* call.c (joust): Complain about mismatched default arguments
in extern C functions.
* class.c (resolve_address_of_overloaded_function): Handle multiple
extern C functions.
* pt.c (resolve_overloaded_unification): Likewise.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/overload/extern-C-1.C
- copied unchanged from r145709,
trunk/gcc/testsuite/g++.dg/overload/extern-C-1.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/call.c
branches/gcc-4_4-branch/gcc/cp/class.c
branches/gcc-4_4-branch/gcc/cp/name-lookup.c
branches/gcc-4_4-branch/gcc/cp/pt.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34691