Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nsdmi-array2.C

raw
1 // PR c++/109666
2 // { dg-do compile { target c++11 } }
3
4 struct Point {
5 int value_;
6 };
7 template <int n> struct StaticVector {
8 static StaticVector create() {
9 StaticVector output;
10 return output;
11 }
12 Point _M_elems[n]{};
13
14 };
15 void f() { StaticVector<3>::create(); }