[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / partial3.C
blob9862675148eb8b0dd20837117fb3f37f86eff8fa
1 // { dg-do compile }
2 // Origin: John Maddock <john at johnmaddock dot co dot uk>
3 // PR c++/13997: Error while matching partial specialization of array type
5 template <typename T>
6 struct is_array;
8 template <typename T, unsigned int N>
9 struct is_array<T[N]>;
11 template <typename T, unsigned int N>
12 struct is_array<const T[N]> {};
14 template struct is_array<int const[2]>;