Debian Codegraph @

gcc/testsuite/g++.dg/init/array63.C

raw
1 // PR c++/59465
2 // { dg-do compile }
3
4 struct I {
5 const bool b;
6 };
7 struct O {
8 I a[2];
9 static I const data[2];
10 O() : a(data){} // { dg-error "array must be initialized" }
11 };
12
13 I const O::data[2] = {true, false};