From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 429583858C83; Fri, 22 Apr 2022 20:29:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 429583858C83 From: "gawain.bolton at free dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105351] New: [concepts] Constraint checking does correctly match static member attributes Date: Fri, 22 Apr 2022 20:29:58 +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: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gawain.bolton at free dot fr 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 attachments.created 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2022 20:29:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105351 Bug ID: 105351 Summary: [concepts] Constraint checking does correctly match static member attributes Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gawain.bolton at free dot fr Target Milestone: --- Created attachment 52852 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52852&action=3Dedit Concept requirements violated when attr2 is not static The attached code is shows how a concept requiring a static attribute match= es a structure which has the attribute with a non-static data member. The code also shows that the checking of static vs. non-static functions wo= rks as expected. Tested with https://godbolt.org/ using versions: x86-64 gcc v11.2 and trunk Compiler options: -std=3Dc++20 -Wall -Wextra -O2=