For this testcase: namespace N { void f(); } void N::f() { extern int i; extern void g(); i = 1; g(); } namespace N { int i; void g() { } } int main() { } we end up with unsatisfied references to ::i and ::g.
Created attachment 19937 [details] patch for 4.6
If f is done inside "namespace N{}", it works
Fixed for 4.6.