Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/crash56.C

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