[Bug c/109113] internal compiler error: in output_constructor_regular_field, at varasm.cc:5521

2023-03-13 Thread noe.lopez at epitech dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109113 --- Comment #5 from Noé Lopez --- (In reply to Andrew Pinski from comment #3) > The code is invalid. > If you change the first `FILE_MENU` to `{0, { fn }}`, you get an error > message: > > :31:13: error: initialization of flexible array member

[Bug c/109113] internal compiler error: in output_constructor_regular_field, at varasm.cc:5521

2023-03-13 Thread noe.lopez at epitech dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109113 --- Comment #2 from Noé Lopez --- Here's the code in plain text: #include typedef struct menu_item_s { void *fn; } menu_item_t; typedef struct menu_list_s { int _a; menu_item_t items[]; } menu_list_t; typedef struct menu_s {

[Bug c/109113] internal compiler error: in output_constructor_regular_field, at varasm.cc:5521

2023-03-13 Thread noe.lopez at epitech dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109113 --- Comment #1 from Noé Lopez --- Created attachment 54651 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54651&action=edit The preprocessed file

[Bug c/109113] New: internal compiler error: in output_constructor_regular_field, at varasm.cc:5521

2023-03-13 Thread noe.lopez at epitech dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109113 Bug ID: 109113 Summary: internal compiler error: in output_constructor_regular_field, at varasm.cc:5521 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severi