From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 92C443858D1E; Sat, 26 Feb 2022 17:17:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92C443858D1E From: "piotr.grabowski at scylladb dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103328] [11/12 Regression] ICE in remap_gimple_stmt, at tree-inline.c:1921 since r11-7419-g0f161cc8494cf728 Date: Sat, 26 Feb 2022 17:17:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: piotr.grabowski at scylladb dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Feb 2022 17:17:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103328 Piotr Grabowski changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.grabowski at scyllad= b dot co | |m --- Comment #18 from Piotr Grabowski = --- Created attachment 52520 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52520&action=3Dedit smaller reproducer (-g flag required) Uploading a smaller 30-line reproducer, reduced independently from Avi, but started from the same origin file. The error messages are the same as previ= ous reproducers. It fails to compile with all optimization levels I checked. Compiled with (-g required): g++ -g -std=3Dc++20 attached.cpp For g++ (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9) and "-g -std=3Dc++20 -fche= cking" it fails with: ... pr103328_smaller.cpp:30:13: error: location references block not in block t= ree ... (repeated multiple times) pr103328_smaller.cpp:30: confused by earlier errors, bailing out Preprocessed source stored into /tmp/ccdJXVFM.out file, please attach this = to your bugreport. For "g++ (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)" and "-g -std=3Dc++20 -fno-checking" it fails with: during RTL pass: final pr103328_smaller.cpp: In function =E2=80=98void foo::f()::::operator()(foo::f()::::_ZZN3foo1fEvENKUlvE_= clEv.Frame*)=E2=80=99: pr103328_smaller.cpp:24:17: internal compiler error: Segmentation fault 24 | auto lambda =3D [this]() noexcept -> task { | ^ Please submit a full bug report, For "g++ (Compiler-Explorer-Build-gcc-cb3afcd2a380f2fb6c490f2c1318f76402eab43a-binut= ils-2.36.1) 12.0.1 20220217 (experimental)" and "-g -std=3Dc++20 -fno-checking" it fails with: during RTL pass: final : In function 'void foo::f()::::operator()(foo::f()::::_ZZN3foo1fEvENKUlvE_= clEv.Frame*)': :24:17: internal compiler error: tree check: expected block, have function_decl in change_scope, at final.cc:1467 24 | auto lambda =3D [this]() noexcept -> task { | ^ 0x217c1f9 internal_error(char const*, ...) ???:0 0x6f3eaf tree_check_failed(tree_node const*, char const*, int, char const*, ...) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). For "g++ (Compiler-Explorer-Build-gcc-cb3afcd2a380f2fb6c490f2c1318f76402eab43a-binut= ils-2.36.1) 12.0.1 20220217 (experimental)" and "-g -std=3Dc++20 -fchecking" it fails w= ith: ... :30:13: error: location references block not in block tree ... (repeated multiple times) during IPA pass: *free_lang_data :30:13: internal compiler error: verify_gimple failed 0x217c1f9 internal_error(char const*, ...) ???:0 0x1188a85 verify_gimple_in_cfg(function*, bool) ???:0=