https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82780
--- Comment #1 from sgunderson at bigfoot dot com --- Here's a version that's valid C++: class a { }; template <class b> class c { c(c &&e) : a(static_cast<a &&> (e.d)) {} a d; };
sgunderson at bigfoot dot com Tue, 31 Oct 2017 02:46:38 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82780
--- Comment #1 from sgunderson at bigfoot dot com --- Here's a version that's valid C++: class a { }; template <class b> class c { c(c &&e) : a(static_cast<a &&> (e.d)) {} a d; };