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 #3 from jakub at gcc dot gnu dot org  2008-01-11 14:01 -------
What about:
namespace A {
  extern "C" int g (double);
}
namespace B {
  extern "C" int g (int);
}
using namespace A;
using namespace B;

void f ()
{
  g (1.0);
}

I don't believe this is valid, as extern "C" means there is just one g, yet it
is accepted.


-- 


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]