// { dg-do compile } // Origin: ariels@compugen.co.il // PR c++/2513: typename handling when scope is dependent as // described in DR108. template struct Select { typedef int Result; }; template class Pred> struct FindType { typedef typename Select::Result Result; }; template struct Int { template struct RightSize {}; typedef typename FindType::Result type; };