From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B2593858D28; Sun, 26 May 2024 11:45:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B2593858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716723958; bh=J9kTDHGH2toXdXH1luWQum+jb/4SsOUorpP50FgYQuc=; h=From:To:Subject:Date:From; b=kDokxj4kG43tGI53768tuiXHhdATy6K1Sfpf8UOtPs7vGczp4c2JtbQNCr9GlhlaR JaTnbFb/kGPaBOS6N6l4IbAeNjl4VWMQ4vo3vaE7b48VCgKiY7PnG+cEgXW2IWBQ8d tztagZlglBF/DBWUKQQTJRouBG+bpp4EJJhNtVPw= From: "vopl at bk dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/115232] New: [14 regression] ICE during GIMPLE pass Date: Sun, 26 May 2024 11:45:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vopl at bk dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115232 Bug ID: 115232 Summary: [14 regression] ICE during GIMPLE pass Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vopl at bk dot ru Target Milestone: --- $ cat ./ice-14.cpp && echo EOFFFFF // g++-14 -std=3Dc++20 -v -c ./ice-14.cpp /////////0/////////1/////////2/////////3/////////4/////////5/////////6/////= ////7 template struct Outer { Outer(); template static constexpr bool staticTemplatedConstant =3D true; template void method() requires staticTemplatedConstant { struct Inner { static void* operator new(unsigned long /*sz*/) {return new cha= r;} static void operator delete(void*) {} Outer _outerInstance; }; new Inner; } }; /////////0/////////1/////////2/////////3/////////4/////////5/////////6/////= ////7 void f() { Outer{}.method(); } EOFFFFF $ g++-14 -std=3Dc++20 -v -c ./ice-14.cpp Using built-in specs. COLLECT_GCC=3Dg++-14 Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/gcc-14-20240518/config= ure --host=3Dx86_64-pc-linux-gnu --build=3Dx86_64-pc-linux-gnu --prefix=3D/usr --bindir=3D/usr/x86_64-pc-linux-gnu/gcc-bin/14 --includedir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/14/include --datadir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14 --mandir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man --infodir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info --with-gxx-include-dir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=3D/share/gcc-data/x86_64-pc-linux-gnu/14/python --enable-languages=3Dc,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --disable-libunwind-exceptions --enable-checking=3Drelease --with-bugurl=3Dhttps://bugs.gentoo.org/ --with-pkgversion=3D'Gentoo 14.1.1_p20240518 p1' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=3Dpos= ix --enable-__cxa_atexit --enable-clocale=3Dgnu --enable-multilib --with-multilib-list=3Dm32,m64 --disable-fixed-point --enable-targets=3Dall --enable-libgomp --disable-libssp --disable-libada --enable-cet --enable-systemtap --disable-valgrind-annotations --enable-vtable-verify --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --disable-default-ssp --disable-fixincludes --with-build-config=3D'bootstrap-lto bootstrap-cet' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.1.1 20240516 (Gentoo 14.1.1_p20240518 p1)=20 COLLECT_GCC_OPTIONS=3D'-std=3Dc++20' '-v' '-c' '-shared-libgcc' '-mtune=3Dg= eneric' '-march=3Dx86-64' /usr/libexec/gcc/x86_64-pc-linux-gnu/14/cc1plus -quiet -v -D_GNU_SOURCE ./ice-14.cpp -quiet -dumpbase ice-14.cpp -dumpbase-ext .cpp -mtune=3Dgeneric -march=3Dx86-64 -std=3Dc++20 -version -fcf-protection -o /tmp/cc0hiSMi.s GNU C++20 (Gentoo 14.1.1_p20240518 p1) version 14.1.1 20240516 (x86_64-pc-linux-gnu) compiled by GNU C version 14.1.1 20240516, GMP version 6.3.0, MPFR version 4.2.1, MPC version 1.3.1, isl version isl-0.26-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include-fixed" ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/includ= e" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14 /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/backward /usr/lib/gcc/x86_64-pc-linux-gnu/14/include /usr/include End of search list. Compiler executable checksum: b63801264392b36e05179a0f762d8604 during GIMPLE pass: waccess ./ice-14.cpp: In member function 'void Outer::method() requires=20 staticTemplatedConstant [with U =3D void; T =3D void]': ./ice-14.cpp:12:29: internal compiler error: Segmentation fault 12 | template void method() requires staticTemplatedConstant | ^~~~~~ 0x55af8dca912c crash_signal =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.1.1_p20240518/gcc-14-20240518/gcc/toplev.cc= :319 0x55af8dbea562 new_delete_mismatch_p =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.1.1_p20240518/gcc-14-20240518/gcc/gimple-ss= a-warn-access.cc:1627 0x55af8d7e15d5 new_delete_mismatch_p =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.1.1_p20240518/gcc-14-20240518/gcc/gimple-ss= a-warn-access.cc:1765 0x55af8d7e15d5 matching_alloc_calls_p =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.1.1_p20240518/gcc-14-20240518/gcc/gimple-ss= a-warn-access.cc:1788 0x55af8e48fcdb matching_alloc_calls_p =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.1.1_p20240518/gcc-14-20240518/gcc/gimple-ss= a-warn-access.cc:1998 0x55af8e48fcdb maybe_check_dealloc_call =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.1.1_p20240518/gcc-14-20240518/gcc/gimple-ss= a-warn-access.cc:3757 0x55af8e48fcdb check_call =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.1.1_p20240518/gcc-14-20240518/gcc/gimple-ss= a-warn-access.cc:4367 0x55af8e48fcdb check_block =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.1.1_p20240518/gcc-14-20240518/gcc/gimple-ss= a-warn-access.cc:4444 0x55af8e48fcdb execute =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.1.1_p20240518/gcc-14-20240518/gcc/gimple-ss= a-warn-access.cc:4779 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=