PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / spec14.C
blob9b59565c465444392831eb3c6f556ccd39a71257
1 // { dg-do compile }
2 // Origin: <weissr at informatik dot uni-tuebingen dot de>
3 // PR c++/3671: Non-type enum parameters must not be converted
5 enum T1 {a};
6 enum T2 {b};
8 struct Y {
9   template <T1 i> void foo() {}
10   template <T2 i> void foo() {}
13 struct Z {
14   template <T1 i> void foo() {}
17 template void Y::foo<b> ();
18 template void Z::foo<b> ();   // { dg-error "" }