https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109666
Bug ID: 109666 Summary: Segmentation fault with std::array using gcc 13 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: john.viklund at effnet dot com Target Milestone: --- Created attachment 54951 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54951&action=edit Preprocessed source gcc (GCC) 13.0.1 20230401 (Red Hat 13.0.1-0) running on Fedora 38 Compiled with: /usr/bin/gcc -std=c++20 -O3 -c foo.cc Gives the following output: foo.cc: In instantiation of ‘Bar<T>::Bar() [with T = Foo]’: foo.cc:19:23: required from here foo.cc:14:20: internal compiler error: Segmentation fault 14 | std::array<T, 1> a_{}; | ^~ Please submit a full bug report, with preprocessed source. See <http://bugzilla.redhat.com/bugzilla> for instructions. Preprocessed source stored into /tmp/cci1GNGP.out file, please attach this to your bugreport. Was also able to reproduce it using godbolt on gcc 13.1: https://godbolt.org/z/7nK446P34