From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 885F83858D38; Tue, 4 Oct 2022 05:26:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 885F83858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664861197; bh=glR4NKHnnNwQhQdZrBAeDwOQ5CkyvbxIgHm2snc+ENg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Rn68xoyoVWHAaZM5YajrvvPNsu6PskZtp4GbnkJ5Zi4wkcCzNHgZ83dVe1U6IVMkj oKaGF923nY309b7J/CG0M6v57w3ZAqhVL5Hf7niqyzDP7/U59h43s42UBEBhAUvyNv 2+xDnnHljrpGuqck+chQD9gZir4ObotcHRB3Paws= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107146] [ICE] in build_value_init, at cp/init.cc:347 Date: Tue, 04 Oct 2022 05:26:36 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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=3D107146 --- Comment #1 from Andrew Pinski --- This seems like it was fixed already in GCC 12.2.0. testcase.ii: In instantiation of 'void fields_count() [with T =3D my_class]= ': testcase.ii:18:3: required from 'void binary_visit(T, U) [with =3D less_impl; T =3D my_class*; U =3D my_class]' testcase.ii:21:26: required from 'void lt_fields(T, U) [with T =3D my_cla= ss*; U =3D my_class]' testcase.ii:30:43: required from here testcase.ii:6:37: error: no matching function for call to 'detect_fields_count_dispatch(, int, int)' testcase.ii:3:6: note: candidate: 'template decltype (= T{}) detect_fields_count_dispatch(size_t_, long int, int)' testcase.ii:3:6: note: template argument deduction/substitution failed: testcase.ii:6:37: note: couldn't deduce template parameter 'N' Most likely fixed by the patch for PR 105589 .=