From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2ECBC3853543; Thu, 6 Oct 2022 07:08:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2ECBC3853543 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665040082; bh=gONWTOlCpTWlJ+PROXfKXIU+I62s24LWTI7B+bwS4uU=; h=From:To:Subject:Date:From; b=A6hT51+bA64h2oBHF744jGWCCIL4NJ+a51vR2hcoNGMqnyA5T5l6//X23TjRTJxLS ZSmJK4nQBlSnelYoy1+Lm32/zeCGAd+1zn7Z7tc3eqndsKf/GlsTcFsmP6tjYkogOt Rtu8WsUEbC1X5oP4jn1tiHQnlXQ/nRDUg70xOIvs= From: "fchelnokov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107168] New: Wrong errors for concepts with default lambda not-type argument Date: Thu, 06 Oct 2022 07:08:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fchelnokov at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D107168 Bug ID: 107168 Summary: Wrong errors for concepts with default lambda not-type argument Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fchelnokov at gmail dot com Target Milestone: --- The following code in accepted in Clang and MSVC, but GCC emits seemingly w= rong errors: template concept x =3D true; struct S { // GCC error: template argument 2 is invalid operator x auto() { return 42; } // GCC error: wrong number of template arguments (0, should be at least= 1) operator x<> auto() const { return 43; } }; Online demo: https://godbolt.org/z/a3494qrG3=