aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/array63.C
blob: 96bc9a64b26cf38c3f963fce8e53e0e4c5cc8653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/59465
// { dg-do compile }

struct I {
    const bool b;
};
struct O {
    I a[2];
    static I const data[2];
    O() : a(data){}  // { dg-error "array must be initialized" }
};

I const O::data[2] = {true, false};