// { dg-do compile } // Copyright (C) 2003 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 21 Mar 2003 // PR 9708. We accepted a local class template class X {}; void fn () { class L {}; X f; // { dg-error "uses local type|trying to instantiate|no type|invalid type" "" } }