https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117054
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2024-10-09
Keywords| |ice-on-valid-code
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Slightly different testcase without template variables:
```
template<auto = [] {}>
struct s1 {
static constexpr bool a = true;
};
template<typename>
void f() {
[](auto) {
if constexpr (s1<>::a) {}
};
}
auto t = f<int>;
```