>>669
だめみたいだね。これに似てるけど、g++ だと、

template<class T> void foo()
{
 typedef T::B b;
}

なんてのも、templateのパース時にエラーになってしまう。
VC++ なら通るのに。