https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109559
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Sorry, that wasn't part of the test. ``` # 0 "" 3 struct function_base { has_trivial_copy_and_destroy() const; int functor; }; struct function1 : function_base { swap(function1) { has_trivial_copy_and_destroy(); } }; struct function : function1 { template <typename Functor> operator=(Functor) { swap(*this); } }; # 4 "" struct FilonIntegral { double integrate() const; }; double FilonIntegral::integrate() const { function f1; f1 = [] {}; return 0; } ```