https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102656
--- Comment #1 from Dmitry Prokoptsev <dprokoptsev at gmail dot com> --- Follow-up: adding a non-trivial copy constructor -- future(const future& f): x(f.x) {} -- also resolves the ICE.
dprokoptsev at gmail dot com via Gcc-bugs Fri, 08 Oct 2021 14:30:07 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102656
--- Comment #1 from Dmitry Prokoptsev <dprokoptsev at gmail dot com> --- Follow-up: adding a non-trivial copy constructor -- future(const future& f): x(f.x) {} -- also resolves the ICE.