// PR c++/4903 // Origin: Dan Marinescu // { dg-do compile } template struct A { template struct B { A::template B foo(); // { dg-error "" } }; };