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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Same ICE:

```
struct A {};
template <typename T>
constexpr static A a = (A{}, A{});
```

constexpr static A a = A{};

works because expand_aggr_init_1 sees a COMPOUND_LITERAL_P and does the early
exit without calling expand_default_init.

Reply via email to