Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr82159.C

raw
1 // PR c++/82159
2 // { dg-do compile }
3 // { dg-options "" }
4
5 template<int N>
6 struct S
7 {
8 ~S () {}
9 template<int M> S<M> foo () { return S<M> (); }
10 unsigned char data[N];
11 };
12
13 int
14 main ()
15 {
16 S<16> d;
17 S<0> t = d.foo<0> ();
18 }