From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 015CC385700A; Mon, 17 Oct 2022 12:08:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 015CC385700A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666008523; bh=1/bhYBKYXvM6yc5Cb2u+7KnJ8yIKT8vniBbYUa8UkQ8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RQCCCjSe9xCmE4JCq9RbXulwHcwpjlzd+GKkGRdDct+5F8Vp0N8gYtFo+7SJpxb/q i0qDfFLb/og93PJBnmOjNIkDlULgzlcXTQ2naLKqxmFHX47puHgDZwH6EdbmD0Ozsg Kmmj5IT/U6nVa/nq6t3ztlqYsJja81+Sjc0ljh44= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107282] ICE on valid code template + overloaded + visit Date: Mon, 17 Oct 2022 12:08: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: 13.0 X-Bugzilla-Keywords: 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status everconfirmed cf_reconfirmed_on cc 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=3D107282 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2022-10-17 CC| |nathan at gcc dot gnu.org, | |ppalka at gcc dot gnu.org --- Comment #2 from Martin Li=C5=A1ka --- Reduced test-case: $ cat pr107282.ii template void visit(_Visitor, _Variants); template struct overloaded : Ts... { using Ts::operator()...; }; template overloaded(Ts...) -> overloaded; template int copyLifeState(int value) { visit(overloaded{[] { overloaded{[] {}}; }}, value); return 0; } int main() { int value =3D copyLifeState(value); } Maybe started with r11-6855-g4804de453e7f5f90.=