From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 20CE63858410; Mon, 25 Mar 2024 10:55:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 20CE63858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711364118; bh=wRLW11o0S2nBwm20ZsMLP3Oaz3/VtffB/5pWbM8TWEI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=X8C/NDfkpYd5rJTMUnVp2Iqh3YUpn6C8aAfM40n8VH0rIfYzHOMhj27h/NmQRXKYj OSHcQVOHaQsOjHuXRQWZKoFt1kV4w9F7cYlYi3q0yMkZIq5AOYQikf0XMlfbJX5uuN yxJze5waGKzwfLZcQleJHMffuzwFbw08ZOnxyS1A= From: "andrea.agostini.sax at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/93595] [c++20] function call, substitution failure of template parameter with a lambda default in template context Date: Mon, 25 Mar 2024 10:55: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: 9.1.0 X-Bugzilla-Keywords: c++-lambda, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: andrea.agostini.sax at gmail dot com 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: 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=3D93595 Andrea Agostini changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrea.agostini.sax at gma= il dot c | |om --- Comment #9 from Andrea Agostini = --- While trying to work around this, I massaged the code enough for the compil= er to produce a more interesting message: see https://godbolt.org/z/Gsbv8fG7M Adding a return statement to the lambda makes the compiler confess that it thinks the lambda should return int, rather than void. Maybe this can help pinpoint the bug?=