1 // Copyright (C) 2005 Free Software Foundation, Inc. 2 // Contributed by Nathan Sidwell 10 Aug 2005 <nathan@codesourcery.com> 3 4 // PR 23219, ICE 5 // Origin:Andrew Pinski <pinskia@gcc.gnu.org> 6 // Volker Reichelt <reichelt@gcc.gnu.org> 7 8 template <class _Tp> class insert_iterator<slist<_Tp> > {}; // { dg-error "not a class template|not declared in this scope|expected unqualified-id|extra" } 9 template <class _Value> class insert_iterator<int > { // { dg-error "template" } 10 hash_set<_Value>; 11 }; 12 13 template<int> struct A<X<> > {}; // { dg-error "not a class template|not declared in this scope|expected unqualified-id|extra" } 14 struct A {}; 15