// { dg-do compile } // Copyright (C) 2006 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 25 Aug 2006 // Origin: Tobias Schwinger // PR 27787. Too eager to resolve a typename template struct x { template struct y { typedef Y type; }; }; template struct a : x { template typename a::template y::type f(B); };