From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9E3023836E6C; Tue, 31 May 2022 23:45:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E3023836E6C From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105797] [11/12/13 Regression] Internal compiler error: Segmentation fault ( fn_type_unification -> satisfaction_cache::satisfaction_cache -> iterative_hash_template_arg ) Date: Tue, 31 May 2022 23:45:42 +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.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org 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.4 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 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: Tue, 31 May 2022 23:45:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105797 --- Comment #2 from Marek Polacek --- // PR c++/105797 namespace std { template struct integral_constant { static constexpr int value =3D __v; }; template struct decay { typedef _Tp type; }; template using decay_t =3D typename decay<_Tp>::type; template constexpr bool is_integral_v =3D integral_constant::value; template concept integral =3D is_integral_v<_Tp>; } // namespace std template struct AStruct { using value_type =3D int; }; template void fc1(AStruct v) requires std::integral::value_type>; template void fc2(AStruct v1, T2_) requires std::integral::value_type>; AStruct test_v1, test2_v; int test_v2; void test() { fc2(test_v1, test_v2); } void test2() { fc1(test2_v); }=