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