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
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 {
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
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