This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34691] [4.1/4.2/4.3 Regression] Default argument checking not performed after overload resolution with C linkage



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]