[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / sizeof8.C
blobbed68f9d16e86ddb2216452f16b2746634f3987e
1 // { dg-do compile }
2 // Testcase by: bangerth@dealii.org
3 // PR c++/11406: ICE
5 template <int> struct S{};
7 template <int N> S<sizeof(new double[N])> f() { return S<sizeof(new double[N])>(); }
9 template S<sizeof(void*)> f<2>();