namespace A { int x; } namespace B { char x; } void main() { #error This is a wondorful error /* x = 3; //error C2065: 'x' : undeclared identifier x = 'a'; //error C2065: 'x' : undeclared identifier */ A::x = 3; // good use B::x = 'a'; // good use }