Re: [PATCH] Fix PR c++/44859
Applied, thanks. Jason
[PATCH] Fix PR c++/44859
Hi, In PR c++/44859, it is noted that the following code does not emit a "returning reference to temporary" warning: struct Base2 { int m_foo; }; struct Derived2 : public Base2 {}; const Base2& f8() { return Derived2(); } // <-- here The source of the problem seems to be that maybe_warn_ab