From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 643A03856956; Fri, 5 May 2023 17:50:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 643A03856956 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683309053; bh=nKfRpI7uQNGph4x+xTPIy4Ilf5EschZBwluz3DLf0Kg=; h=From:To:Subject:Date:From; b=PeYaXkVo3DTEyhTEMAy7oFZyO0ocdvNOfNeYv8eWXkgRPLWiMtJ0CXM6PGAgCQmpr mjnzX0gYTOYM9u5Dgihj4mgSs8yxvtx9YW6pQVmTv7vueWFy7nbfJKmZ/RG4F8M6jE xGjOphr4I6x3IiE0cv2PGAEnYLISLxRKS4FE3CGI= From: "ldalessandro at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109752] New: [ICE] in check_complete_insertion, at hash-table.h:578 Date: Fri, 05 May 2023 17:50:53 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ldalessandro 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=3D109752 Bug ID: 109752 Summary: [ICE] in check_complete_insertion, at hash-table.h:578 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ldalessandro at gmail dot com Target Milestone: --- The following example is reduced from https://github.com/boostorg/stl_interfaces/blob/boost-1.82.0/example/node_i= terator.cpp. It causes the ICE on trunk (gcc-14). #include template struct iterator : boost::stl_interfaces::iterator_interface,= =20 std::forward_iterator_tag, T> { using base_type =3D boost::stl_interfaces::iterator_interface, std::forward_iterator_tag, T>; using base_type::operator++; T& operator*() const; iterator& operator++(); bool operator=3D=3D(iterator) const; }; static_assert(std::incrementable>); Live: https://godbolt.org/z/n9hMW4a4b PR: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108451 fails the same as= sert but I don't know if it's the same cause. PR: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109751 same example may trigger gcc-13 bug (I'm not sure)=