https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114053
Bug ID: 114053 Summary: GCC accepts initialization of array with another static data member array in member initializer list Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jlame646 at gmail dot com Target Milestone: --- The following program is accepted by gcc but rejected by both clang and msvc: ``` struct I { const bool b; }; struct O { I a[2]; static I const data[2]; O() : a(data){} } ; I const O::data[2] = {true, false}; ``` Is this a bug or some non-standard extension?