From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 16F5D3858C50; Thu, 3 Nov 2022 08:36:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 16F5D3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667464565; bh=xk7j8EhSzsiSf+g+ETBWOOTF81mExHFM9AJFOcS8Qs0=; h=From:To:Subject:Date:From; b=MEY2QIP2bcCTwKbmhn7Wfi7Odk5k5wnHIAfemMDCF81KHi4TQUCubd2FYk3ebRc2n 8PMLn0JLbhM4itVSfhjZE+r1Bc7tttZ/E1wKwN7absqAHvPaOE8JArOVt2Lwtf61zW +09dvUjSM45RbwJBhcJQHRVOUlx0Q7XwN0rfkILA= From: "janezz55 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107514] New: quick crash of gcc due to noexcept specification Date: Thu, 03 Nov 2022 08:36:00 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: janezz55 at gmail dot com 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=3D107514 Bug ID: 107514 Summary: quick crash of gcc due to noexcept specification Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: janezz55 at gmail dot com Target Milestone: --- The noexcept specification is probably c++ non-complaint, but still causes a crash: constexpr void assign_tuple(auto& t, auto&& ...a) noexcept(noexcept( [](std::index_sequence) noexcept(noexcept( ((std::get(t) =3D std::forward(a)), ...) ) ) { }(std::make_index_sequence()) ) ) { [&](std::index_sequence) noexcept(noexcept(((std::get(t) =3D std::forward(a)), .= ..))) { ((std::get(t) =3D std::forward(a)), ...); }(std::make_index_sequence()); } prog.cc: In instantiation of 'assign_tuple, int, = int, int>(std::tuple&, int&&, int&&, int&&)::)> [with auto ...I =3D {0, 1, 2}; std::index_sequence =3D std::integer_sequence]': prog.cc:21:4: required from 'constexpr void assign_tuple(auto:1&, auto:2&& ...) [with auto:1 =3D std::tuple; auto:2 =3D {int, int, int}= ]' prog.cc:29:15: required from here prog.cc:18:73: internal compiler error: Segmentation fault 18 | noexcept(noexcept(((std::get(t) =3D std::forward(a)), ...))) |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ The source is here: https://wandbox.org/permlink/alJJGFEkTE8b7EXn I can't provide anything else, since I typed it in over at wandbox. I suspe= ct the bug is a duplicate anyway. clang does not crash while compiling the snippet.=