public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/114962] New: For each iteration in static assert fails to compile
@ 2024-05-06 16:01 jdapena at igalia dot com
  2024-05-06 16:16 ` [Bug c++/114962] For each iteration in static assert fails to compile with pointer to member functions pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jdapena at igalia dot com @ 2024-05-06 16:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114962
           Summary: For each iteration in static assert fails to compile
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jdapena at igalia dot com
  Target Milestone: ---

Created attachment 58109
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58109&action=edit
Test case

The attached example, that allows to make sure all members are defined in a
constexpr created std::array, fails in GCC (and works in Clang at least from
version 10.x and in current trunk).

I am not sure if this is a valid pattern, so reporting a bug to GCC for further
analysis.

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

end of thread, other threads:[~2024-05-06 18:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-06 16:01 [Bug c++/114962] New: For each iteration in static assert fails to compile jdapena at igalia dot com
2024-05-06 16:16 ` [Bug c++/114962] For each iteration in static assert fails to compile with pointer to member functions pinskia at gcc dot gnu.org
2024-05-06 16:27 ` mpolacek at gcc dot gnu.org
2024-05-06 18:36 ` mpolacek at gcc dot gnu.org
2024-05-06 18:43 ` pinskia at gcc dot gnu.org
2024-05-06 18:44 ` pinskia 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).