From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 696593858D35; Sun, 19 Nov 2023 13:53:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 696593858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700402031; bh=Rqrsz5P/MsZsc86uKsR5sBc7sYzAD/+CvHtIZPFEAzw=; h=From:To:Subject:Date:From; b=eOFk+JfqgWzwOPGCat2K6lOV+KuqIP26RACRDSdUSV2LSmY4AtPamPUViUHIs8lgY Aceo1nBq0BMb4WiMWlIj8C19dCrXSPJCfO2jncU4Wpga7VWHEHpGWQkxCCVIv56H6Q z64AAaedGup6scQIAi0F5/1bCVMi61z8NmwHRZFI= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/112619] New: [14 regression] ICE when building libcrafter (tree check: expected statement_list, have modify_expr in tsi_start, at tree-iterator.h:57) Date: Sun, 19 Nov 2023 13:53:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org 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 attachments.created 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=3D112619 Bug ID: 112619 Summary: [14 regression] ICE when building libcrafter (tree check: expected statement_list, have modify_expr in tsi_start, at tree-iterator.h:57) Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 56640 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56640&action=3Dedit ICMPCraft.ii Originally reported downstream in Gentoo at https://bugs.gentoo.org/917592 = by Toralf F=C3=B6rster. ``` libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -ansi -pedantic -Wall= -O2 -march=3Dnative -pipe -fcf-protection=3Dnone -fdiagnostics-color=3Dalways -fdiagnostics-urls=3Dnever -frecord-gcc-switches -ggdb3 -c crafter/Protocols/ICMPCraft.cpp -fPIC -DPIC -o crafter/Protocols/.libs/ICMPCraft.o In file included from crafter/Protocols/ICMP.h:30, from crafter/Protocols/ICMPCraft.cpp:34: crafter/Protocols/../Layer.h:246:32: warning: 'virtual Crafter::Layer& Crafter::Layer::operator=3D(const Crafter::Layer&)' was hidden [-Woverloaded-virtual=3D] 246 | virtual Layer& operator=3D(const Layer& right); | ^~~~~~~~ In file included from crafter/Protocols/ICMP.h:31: crafter/Protocols/ICMPLayer.h:15:15: note: by 'Crafter::ICMPLayer& Crafter::ICMPLayer::operator=3D(const Crafter::ICMPLayer&)' 15 | class ICMPLayer: public Layer { | ^~~~~~~~~ crafter/Protocols/../Layer.h:246:32: warning: 'virtual Crafter::Layer& Crafter::Layer::operator=3D(const Crafter::Layer&)' was hidden [-Woverloaded-virtual=3D] 246 | virtual Layer& operator=3D(const Layer& right); | ^~~~~~~~ crafter/Protocols/ICMP.h:35:11: note: by 'Crafter::ICMP& Crafter::ICMP::operator=3D(const Crafter::ICMP&)' 35 | class ICMP: public ICMPLayer { | ^~~~ crafter/Protocols/ICMPCraft.cpp: In member function 'virtual std::string Crafter::ICMP::MatchFilter() const': crafter/Protocols/ICMPCraft.cpp:196:9: internal compiler error: tree check: expected statement_list, have modify_expr in tsi_start, at tree-iterator.h:= 57 196 | if ( type =3D=3D EchoRequest || type =3D=3D TimeStampReques= t || | ^~ 0x55b58f7d2432 tree_check_failed(tree_node const*, char const*, int, char const*, ...) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.cc:8952 0x55b58e6c2423 tree_check(tree_node*, char const*, int, char const*, tree_c= ode) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.h:3602 0x55b58e6c2423 tsi_start(tree_node*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-iterator.= h:57 0x55b58ea0a100 try_catch_may_fallthru =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.cc:12576 0x55b58ea0a100 block_may_fallthru(tree_node const*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.cc:12649 0x55b59092bac0 block_may_fallthru(tree_node const*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.cc:12659 0x55b59092b20a shortcut_cond_expr =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:44= 12 0x55b59090c794 gimplify_cond_expr =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:46= 91 0x55b5900af22a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:16= 672 0x55b5900ad2f0 gimplify_stmt(tree_node**, gimple**) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:74= 72 0x55b5908f2131 gimplify_bind_expr =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:16= 14 0x55b5900af3aa gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:16= 916 0x55b5900af2b9 gimplify_stmt(tree_node**, gimple**) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:74= 72 0x55b5900af2b9 gimplify_statement_list =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:22= 22 0x55b5900af2b9 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:17= 160 0x55b5900ad2f0 gimplify_stmt(tree_node**, gimple**) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:74= 72 0x55b5900aec7a gimplify_and_add(tree_node*, gimple**) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:493 0x55b5900aec7a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:17= 067 0x55b5900af2b9 gimplify_stmt(tree_node**, gimple**) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:74= 72 0x55b5900af2b9 gimplify_statement_list =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimplify.cc:22= 22 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. ``` ``` Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/configure --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,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=3Dyes,extra,rtl --with-bugurl=3Dhttps://bugs.gentoo.org/ --with-pkgversion=3D'Gentoo Harden= ed 14.0.0 p, commit 35bb529f420ff5863fdae51049e6935ab927ff3d' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=3Dposix --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 --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --with-build-config=3D'bootstrap-O3 bootstrap-lto bootstrap-cet' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231118 (experimental) 841008d3966c0fe7a80ec10703a50fbdab7620ac (Gentoo Hardened 14.0.0 p, commit 35bb529f420ff5863fdae51049e6935ab927ff3d) ``` Needs 'g++ -c ICMPCraft.ii -ansi'.=