1// { dg-do assemble  }
2//
3// Copyright (C) 2000 Free Software Foundation, Inc.
4// Contributed by Nathan Sidwell 1 Sep 2000 <nathan@codesourcery.com>
5
6// bug 127. We ICE'd when given a non-template TYPE_DECL as a template name.
7
8template <class charT>
9class basic_string
10{
11public:
12  typedef charT* iterator;
13  explicit basic_string ();
14  ~basic_string ();
15};
16
17void foo () {
18  basic_string<char>::iterator<char> p; // { dg-error "" } not a template // ERROR - no type
19}
20