OSDN Git Service

2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
[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) // { dg-message "candidate is" }
15 {
16 }
17
18 template <typename ScannerT>
19 struct definition
20 {
21  definition()
22  {
23    bla(coperator_stack::push3<helper>); // { dg-error "matching" }
24  }
25 };
26