[Bug c++/102223] no warning whel calling member function on dangling reference

2021-09-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102223 Richard Biener changed: What|Removed |Added Keywords||diagnostic Severity|normal

[Bug c++/102223] no warning whel calling member function on dangling reference

2021-09-06 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102223 --- Comment #1 from Federico Kircheis --- Sorry, I copied the wrong snippet, it should have been #include struct s{ s() noexcept; ~s(); int value() const noexcept; }; s foo() noexcept; int bar(){ const auto& v = std::move