public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jdapena at igalia dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114962] New: For each iteration in static assert fails to compile Date: Mon, 06 May 2024 16:01:15 +0000 [thread overview] Message-ID: <bug-114962-4@http.gcc.gnu.org/bugzilla/> (raw) 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.
next reply other threads:[~2024-05-06 16:01 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-05-06 16:01 jdapena at igalia dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-114962-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).