[Bug c/109113] internal compiler error: in output_constructor_regular_field, at varasm.cc:5521
noe.lopez at epitech dot eu
gcc-bugzilla@gcc.gnu.org
Mon Mar 13 22:04:38 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109113
--- Comment #5 from Noé Lopez <noe.lopez at epitech dot eu> ---
(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:
>
> <source>:31:13: error: initialization of flexible array member in a nested
> context
> 31 | {0, { fn }},
> | ^
> <source>:31:13: note: (near initialization for 'WINDOW_MENU.items[0].items')
Thank you for pointing that out :) I'm gonna fix my code now have a good day!
More information about the Gcc-bugs
mailing list