Debian Codegraph @

gcc/testsuite/g++.dg/template/sizeof8.C

raw
1 // { dg-do compile }
2 // Testcase by: [email protected]
3 // PR c++/11406: ICE
4
5 template <int> struct S{};
6
7 template <int N> S<sizeof(new double[N])> f() { return S<sizeof(new double[N])>(); }
8
9 template S<sizeof(void*)> f<2>();