summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/sizeof8.C
blob: 861febc161c5c683a1a5f2bb7e28c4ef6b6c5d9d (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }
// Testcase by: bangerth@dealii.org
// PR c++/11406: ICE

template <int> struct S{};

template <int N> S<sizeof(new double[N])> f() {}

template S<sizeof(void*)> f<2>();