https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119001
Bug ID: 119001 Summary: ICE: in output_constructor_regular_field, at varasm.cc:5833 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: bic60176 at gmail dot com Target Milestone: --- Created attachment 60577 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60577&action=edit testcase Compiler Explorer: https://godbolt.org/z/bEa6vseh5 console: <source>:6:13: internal compiler error: in output_constructor_regular_field, at varasm.cc:5833 6 | const union U4 u4[2] = {{"123"}}; | ^~ 0x25f4185 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x260b156 internal_error(char const*, ...) ???:0 0x9e966a fancy_abort(char const*, int, char const*) ???:0 0x15405ef assemble_variable(tree_node*, int, int, int) ???:0 0xc085eb symbol_table::finalize_compilation_unit() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. Compiler returned: 1