https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119563
Bug ID: 119563 Summary: internal compiler error on vector initialization Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: germant at miltenyi dot com Target Milestone: --- Created attachment 60945 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60945&action=edit Preprocessed source g++ fails with a segmentation fault while compiling a program that contains only the initialization of a std::vector. Further information: Reading specs from /home/germant/gcc/15/lib/gcc/x86_64-pc-linux-gnu/15.0.1/specs COLLECT_GCC=/home/germant/gcc/15/bin/g++ COLLECT_LTO_WRAPPER=/home/germant/gcc/15/libexec/gcc/x86_64-pc-linux-gnu/15.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-15-20250330/configure --prefix=/home/germant/gcc/15 --enable-languages=c,c++,rust --enable-shared --without-included-gettext --enable-threads=posix --enable-multiarch --disable-werror --with-tune=generic --without-cuda-driver --disable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.1 20250330 (experimental) (GCC) >uname -a uname -a Linux ccptmb 5.4.0-176-generic #196-Ubuntu SMP Fri Mar 22 16:46:39 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux >g++ --save-temps -c t.cpp -o t t.cpp:28:55: internal compiler error: Segmentation fault 28 | 143, 142, 140, 138, 136, 136, 132, 132, 107, 105, 89}; | ^ 0x29a9f9f internal_error(char const*, ...) ../../gcc-15-20250330/gcc/diagnostic-global-context.cc:517 0x14a50af crash_signal ../../gcc-15-20250330/gcc/toplev.cc:322 0x7f8dfbe7908f ??? /build/glibc-FcRMwW/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0xb2f8db build_list_conv ../../gcc-15-20250330/gcc/cp/call.cc:921 0xb2f8db implicit_conversion ../../gcc-15-20250330/gcc/cp/call.cc:2197 0xb32ca8 add_function_candidate ../../gcc-15-20250330/gcc/cp/call.cc:2637 0xb34650 add_candidates ../../gcc-15-20250330/gcc/cp/call.cc:6866 0xb352de add_candidates ../../gcc-15-20250330/gcc/cp/call.cc:6678 0xb352de add_list_candidates ../../gcc-15-20250330/gcc/cp/call.cc:4314 0xb2dd0f build_user_type_conversion_1 ../../gcc-15-20250330/gcc/cp/call.cc:4601 0xb2eaf4 implicit_conversion ../../gcc-15-20250330/gcc/cp/call.cc:2249 0xb2fbdf perform_implicit_conversion_flags(tree_node*, tree_node*, int, int) ../../gcc-15-20250330/gcc/cp/call.cc:13979 0xbb4032 ocp_convert(tree_node*, tree_node*, int, int, int) ../../gcc-15-20250330/gcc/cp/cvt.cc:951 0xc31fde expand_default_init ../../gcc-15-20250330/gcc/cp/init.cc:2175 0xc31fde expand_aggr_init_1 ../../gcc-15-20250330/gcc/cp/init.cc:2361 0xc34513 build_aggr_init(tree_node*, tree_node*, int, int) ../../gcc-15-20250330/gcc/cp/init.cc:2080 0xbfb0c1 build_aggr_init_full_exprs ../../gcc-15-20250330/gcc/cp/decl.cc:7793 0xbfb0c1 check_initializer ../../gcc-15-20250330/gcc/cp/decl.cc:7958 0xbff912 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int, cp_decomp*) ../../gcc-15-20250330/gcc/cp/decl.cc:9201 0xd1892a cp_parser_init_declarator ../../gcc-15-20250330/gcc/cp/parser.cc:24277 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.