PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash94.C
blob810aed0a61c6e97a1222e76130ad1f6e4e8fb382
1 // Origin: PR c++/42697
2 // { dg-do compile }
4 template<class Value_t>
5 class fparser
7     template<bool Option>
8     void eval2(Value_t r[2]);
9 public:
10     void evaltest();
13 template<>
14 template<bool Option>
15 void fparser<int>::eval2(int r[2])
17     struct ObjType {};
21 template<class Value_t>
22 void fparser<Value_t>::evaltest
23     ()
25     eval2<false>(0);
28 template class fparser<int>;