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