https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102434
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:b1a8b92f8f78536a00012e2e53a0d12ddbe6836d commit r12-6951-gb1a8b92f8f78536a00012e2e53a0d12ddbe6836d Author: Marek Polacek <pola...@redhat.com> Date: Fri Jan 28 20:01:06 2022 -0500 c++: Reject union std::initializer_list [PR102434] Weird things are going to happen if you define your std::initializer_list as a union. In this case, we crash in output_constructor_regular_field. Let's not allow such a definition in the first place. PR c++/102434 gcc/cp/ChangeLog: * class.cc (finish_struct): Don't allow union initializer_list. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/initlist128.C: New test.