https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123379
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Ever confirmed|0 |1
Last reconfirmed| |2026-01-03
Status|UNCONFIRMED |NEW
Blocks| |55004
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced without any includes testcase:
```
struct s
{
const int *data;
int size;
template<int N>
constexpr s(const int (&d)[N]):data(d), size(N){}
constexpr const int *begin() const { return data;}
constexpr const int *end() const{return data+size;}
};
static constexpr int data[] = {1, 2, 3};
void f(int);
int main() {
template for (constexpr auto el : s(data))
f(el);
}
```
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004
[Bug 55004] [meta-bug] constexpr issues