// { dg-do compile } // Copyright (C) 2001 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 19 Jan 2002 // It is legal to specialize a template with a different class-key. template class X; template struct X { int i; }; template<> struct X { int i; }; void foo () { X xip; X xi; xip.i; xi.i; }