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 8template <class _Tp> class insert_iterator<slist<_Tp> > {}; // { dg-error "not a template|not declared in this scope|expected unqualified-id|extra" } 9template <class _Value> class insert_iterator<int > { // { dg-error "template" } 10 hash_set<_Value>; // { dg-error "no type|expected" } 11}; 12 13template<int> struct A<X<> > {}; // { dg-error "not a template|not declared in this scope|expected unqualified-id|extra" } 14struct A {}; 15