// { dg-do compile } // Copyright (C) 2001 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 9 Dec 2001 // PR 72 template struct A { typedef T type; }; template struct B { typedef int xxx; typedef T xxx; typedef typename A::type xxx; typedef A::type xxx; }; B good;