public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105351] New: [concepts] Constraint checking does correctly match static member attributes
@ 2022-04-22 20:29 gawain.bolton at free dot fr
  2022-04-22 20:44 ` [Bug c++/105351] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gawain.bolton at free dot fr @ 2022-04-22 20:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105351

            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=52852&action=edit
Concept requirements violated when attr2 is not static

The attached code is shows how a concept requiring a static attribute matches 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 works
as expected.

Tested with https://godbolt.org/ using versions: x86-64 gcc v11.2 and trunk
Compiler options: -std=c++20  -Wall -Wextra -O2

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-04-18 13:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-22 20:29 [Bug c++/105351] New: [concepts] Constraint checking does correctly match static member attributes gawain.bolton at free dot fr
2022-04-22 20:44 ` [Bug c++/105351] " pinskia at gcc dot gnu.org
2022-04-23  7:22 ` gawain.bolton at free dot fr
2022-04-23 13:18 ` ensadc at mailnesia dot com
2022-05-01 20:02 ` gawain.bolton at free dot fr
2022-05-03 14:00 ` ppalka at gcc dot gnu.org
2022-05-03 14:24 ` ppalka at gcc dot gnu.org
2022-05-03 19:21 ` cvs-commit at gcc dot gnu.org
2023-04-18 13:38 ` ppalka at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).