summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash94.C
blob: 810aed0a61c6e97a1222e76130ad1f6e4e8fb382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Origin: PR c++/42697
// { dg-do compile }

template<class Value_t>
class fparser
{
    template<bool Option>
    void eval2(Value_t r[2]);
public:
    void evaltest();
};

template<>
template<bool Option>
void fparser<int>::eval2(int r[2])
{
    struct ObjType {};
}


template<class Value_t>
void fparser<Value_t>::evaltest
    ()
{
    eval2<false>(0);
}

template class fparser<int>;