PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / spec1.C
blob27996377f6b7d8176f2495d22011887f3471a58a
1 // { dg-do compile }
3 // Origin: <schmid@snake.iap.physik.tu-darmstadt.de>
5 // Bug: ICE during invalid instantiation of member function
6 // which enclosing class is specialized.
8 template <class T>
9 struct A
11     void f(T) {}
14 template<>
15 struct A<int>
17     void f(int) {}
20 template
21 void A<int>::f(int);            // { dg-error "not match" }