PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / non-dependent3.C
blobce18bf243db12c36ba144d134dd83b7fd2db801a
1 //PR c++/11071
2 // Used to ICE
3 // Origin: bangerth@dealii.org and rwgk@yahoo.com
5 template <bool b> struct X {
6     template <typename T>
7     static int* execute(T* x) { return x; }
8 };
10 template <typename T> void foo() {
11   static bool const same = true;
12   X<same>::execute ((int*)0);
15 template void foo<int> ();