From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C9E0A3857B98; Mon, 17 Oct 2022 11:35:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9E0A3857B98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666006516; bh=R/oyNWf+avirzC9Uwa+nZIlDLZ9iu1o4rspbk5qSHXo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C/es1TNMrhulTWQBfui/uImjoBh4TkXcVhtJt+BA2N5LCYORqMcFZFDeDXejuCXI6 WTtxwOZQAOdsvpe/bnoZ+KZ2TdDWFdgZ0jy3vdWzT5TqwIk8LmLpm3js1N0NuqzbGr DjsmGIWHBtazezXtjhMF4p8Y/31eBIsbKyJmRKB4= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107267] [13 Regression] ICE in cp_gimplify_init_expr, at cp/cp-gimplify.cc:253 since r13-3175-g6ffbf87ca66f4ed9 Date: Mon, 17 Oct 2022 11:35:16 +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: 12.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107267 --- Comment #9 from Martin Li=C5=A1ka --- More reduced test-case: template struct integral_constant { static constexpr int value =3D __v; }; template using __bool_constant =3D integral_constant<__v>; template struct __conditional { template using type =3D _Tp; }; template using __conditional_t =3D typename __conditional<_Cond>::type<_If, _Else>; namespace std { template _Tp &&move(_Tp &&); struct pair { int second; }; template struct _Hashtable_traits { using __constant_iterators =3D __bool_constant<_Constant_iterators>; }; template struct _Node_iterator { __conditional_t<__constant_iterators, pair *, pair> operator->(); }; using iterator =3D _Node_iterator<_Hashtable_traits::__constant_iterators::value>; } // namespace std struct FindResult { FindResult(bool, int); std::pair result; }; std::iterator pop_itr; FindResult pop_ret =3D std::move(FindResult(true, pop_itr->second));=