From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E69783858D20; Thu, 10 Nov 2022 12:05:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E69783858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668081934; bh=yJR8enYpEQ52Ib7X9Ud0z+yymAFszm4TAzmFe/oIT8A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=w/2w6lQ5fGIQ5wIXFij9qBlu4elzs6kbDOzSzxYKFKgp06Gt7GXYdThKmoulYhw1F dZUHmer4854zjVaYxct5zOaz2lQbsLRViWWvCCIK6+nJ7Gta1R4uTmwLQkgqQYcUya EkP//6jixxv5t9Xdcm24EEkLwNYCpgLICpf5CCfA= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107605] GCC rejects valid program involving std::bind and requires Date: Thu, 10 Nov 2022 12:05:34 +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: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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 keywords everconfirmed cf_reconfirmed_on 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=3D107605 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |rejects-valid Ever confirmed|0 |1 Last reconfirmed| |2022-11-10 --- Comment #1 from Jonathan Wakely --- This has nothing to do with std::bind. extern "C" int puts(const char*); template class myclass { public: void func(const T&) requires true { puts("true"); } void func(const T&) requires false { puts("false"); } };=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 auto mylambda =3D &myclass::func; req.C:18:32: error: unable to deduce =E2=80=98auto=E2=80=99 from =E2=80=98&= myclass::func=E2=80=99 18 | auto mylambda =3D &myclass::func; | ^~~~ req.C:18:32: note: couldn=E2=80=99t deduce template parameter =E2=80=98au= to=E2=80=99 I think there's an existing bug about this.=