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

--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
Reduced. In fact, I don't know if gcc is right here.

template<bool b>
struct S {
  int x = [b=1] { return b; }();
};

https://godbolt.org/z/fjqvePn5h

Reply via email to