Debian Codegraph @

gcc/testsuite/g++.dg/parse/crash28.C

raw
1 // Copyright (C) 2005 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 10 Aug 2005 <[email protected]>
3
4 // PR 23219, ICE
5 // Origin:Andrew Pinski <[email protected]>
6 // Volker Reichelt <[email protected]>
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 {};