From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CBB183858407; Sat, 15 Oct 2022 11:00:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBB183858407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665831638; bh=26ytVCaFeq5/br2vSk1LFwGAlQfjyhyKUhj8qoLipYY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y8Qck0kJe5pbrDwWVKyom6IsKjve28DvomyEJpTwLtSO6RkxRis0jYtfuJf0bHw5k H0l5krrxLDQ8KsyETjkSHFsSa+H8lT9/QhcPMb5luhLkU46N3zcxjlq4jGWWZ02iu4 YoW4P+N9DfP/4C1T6GgkMYzRaj1W3IYtN3LjgxR4= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107267] ice in cp_gimplify_init_expr, at cp/cp-gimplify.cc:253 Date: Sat, 15 Oct 2022 11:00:37 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail 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: 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 #3 from David Binderman --- Reduced C++ code is 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>; template struct remove_reference { using type =3D _Tp; }; namespace std { template typename remove_reference<_Tp>::type &&move(_Tp &&); struct pair { int second; }; template struct _Hashtable_traits { using __constant_iterators =3D __bool_constant<_Constant_iterators>; }; template struct _Node_iterator { using value_type =3D pair; using pointer =3D __conditional_t<__constant_iterators, value_type *, value_type>; pointer operator->(); }; struct _Insert_base { using __constant_iterators =3D _Hashtable_traits::__constant_itera= tors; using iterator =3D _Node_iterator<__constant_iterators::value>; }; template using __umap_hashtable =3D _Insert_base; struct unordered_map { __umap_hashtable::iterator find(int); }; } // namespace std template using unordered_map =3D std::unordered_map; struct vl_concurrent_unordered_map { struct FindResult { FindResult(bool, int); std::pair result; }; int pop_key; void pop() { auto itr =3D maps[0].find(pop_key); auto ret =3D std::move(FindResult(true, itr->second)); } unordered_map maps[]; } unique_id_mapping; void DispatchDestroyAccelerationStructureKHR() { unique_id_mapping.pop(); }=