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.