https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91464
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |15.0 Keywords| |needs-bisection --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like this was fixed on the trunk. That is: ``` extern "C" namespace A { int value; } int getValue () { return A::value; } int main() { return getValue(); } ``` Works as expected.