There must be something more to this. I have the following simple test case. I have this code in a header file:
namespace SpaceClassDuplicateName
{
class SpaceClassDuplicateName
{
virtual int getWidth() const;
virtual int getHeight() const;
};
class CDerifedFromDuplicate : public SpaceClassDuplicateName // alt-g here works correctly
{
virtual int getWidth() const;
virtual int getHeight() const;
};
};
and this code in the matching cpp file:
static void testDuplicateName()
{
// alt-g here on both namespace and class works correctly
SpaceClassDuplicateName::SpaceClassDuplicateName foo;
foo;
}
and as the comments describe, alt-g is working correctly for me.