Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/template/sizeof8.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
2 // Testcase by: bangerth@dealii.org | 2 // Testcase by: bangerth@dealii.org |
3 // PR c++/11406: ICE | 3 // PR c++/11406: ICE |
4 | 4 |
5 template <int> struct S{}; | 5 template <int> struct S{}; |
6 | 6 |
7 template <int N> S<sizeof(new double[N])> f() {} | 7 template <int N> S<sizeof(new double[N])> f() { return S<sizeof(new double[N])>(); } |
8 | 8 |
9 template S<sizeof(void*)> f<2>(); | 9 template S<sizeof(void*)> f<2>(); |