The following code compiles, though it shouldn.t:

namespace f {
namespace a {

class d;
class a::d { }; // resolves f::a::d

}
}

Re: vc++ 7.1 accepts extra qualifications, though it shouldn't by Igor

Igor
Wed Apr 12 07:09:38 CDT 2006

"Angel Tsankov" <fn42551@fmi.uni-sofia.bg> wrote in message
news:%23aE$2ZgXGHA.4424@TK2MSFTNGP05.phx.gbl
> The following code compiles, though it shouldn.t:
>
> namespace f {
> namespace a {
>
> class d;
> class a::d { }; // resolves f::a::d
>
> }
> }

No error in VC8, too. Looks like a bug to me. You might want to report
it here:

http://lab.msdn.microsoft.com/productfeedback/default.aspx

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925