// { 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; // { dg-message "" } typedef T xxx; // { dg-error "" } typedef typename A::type xxx; // { dg-error "" } typedef A::type xxx; // { dg-error "" } }; B good;