This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34691] [4.1/4.2/4.3 Regression] Default argument checking not performed after overload resolution with C linkage
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2008 13:25:51 -0000
- Subject: [Bug c++/34691] [4.1/4.2/4.3 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 #2 from jakub at gcc dot gnu dot org 2008-01-11 13:25 -------
Related:
void foo (int i, int j = 6);
void foo (int i = 4, int j);
int bar (void)
{
foo ();
}
is accepted (correctly), but:
extern "C" {
void foo (int i, int j = 6);
void foo (int i = 4, int j);
}
int bar (void)
{
foo ();
}
is rejected. How does the "C" linkage matter here?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34691