> Hello all,
>
[quoted text clipped - 22 lines]
> unable to fully understand norm 14.6.2. Could anyone shed some light on
> this? Is this code legal or not?
No, the code above isn't legal. If you remove A<T> as a base class and
refer to Foo with A<T>::Foo, I expect you'll get an error. If instead you
add "int Foo;" as a global in front of B's defintion, I expect you won't
get an error. The problem is that VC still doesn't correctly implement the
"two-phase" lookup rule and is still quite lax about looking into template
bases.

Signature
Doug Harrison
Microsoft MVP - Visual C++
Hendrik Schober - 16 Jun 2005 16:24 GMT
> > Hello all,
> >
[quoted text clipped - 24 lines]
>
> No, the code above isn't legal. [...]
I think it is indeed illegal. Comeau agrees.
<lazy_mode>I'm sure CW agrees, too. At least
it keeps finding such errors that VC let's
me get away with.</lazy_mode>
Schobi

Signature
SpamTrap@gmx.de is never read
I'm Schobi at suespammers dot org
"Coming back to where you started is not the same as never leaving"
Terry Pratchett