OSDN Git Service

PR c++/54858
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / crash37.C
1 // PR c++/21352
2
3 struct coperator_stack
4 {
5  template<class type>
6  void push3()
7  {
8  }
9 };
10
11 struct helper {};
12
13 template<class F>
14 void bla(F f)
15 {
16 }
17
18 template <typename ScannerT>
19 struct definition
20 {
21  definition()
22  {
23    bla(coperator_stack::push3<helper>); // { dg-error "pointer to member" }
24  }
25 };
26