https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87235
Bug ID: 87235 Summary: g++ doesn't implement sparse initialisation of arrays Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dhowells at redhat dot com Target Milestone: --- Created attachment 44662 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44662&action=edit Testcase g++ doesn't implement simple sparse array initialisations, such as: int a[] = { [3] = 99, [5] = 82, }; This can be seen by compiling the attached program with "g++ -c x.cpp". g++ produces lots of "sorry, unimplemented: non-trivial designated initializers not supported" errors.