2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / crash56.C
blob7de57426ad81ceb0b6c75e537d01424ac2a50cc8
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 1 Sep 2000 <nathan@codesourcery.com>
6 // bug 127. We ICE'd when given a non-template TYPE_DECL as a template name.
8 template <class charT>
9 class basic_string
11 public:
12   typedef charT* iterator;
13   explicit basic_string ();
14   ~basic_string ();
17 void foo () {
18   basic_string<char>::iterator<char> p; // { dg-error "" } not a template // ERROR - no type