https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80711
--- Comment #10 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Jonathan Wakely from comment #9) > (In reply to David Binderman from comment #8) > > My opinion is that a first approximation at implementation in gcc would > > merely look for C++ member functions that are return statements only. > > More fancy things could be done later in a second version. > > No, that won't work: Of course. Some false positives are to be expected with a first approximation. Perhaps I've been slightly less than clear. A first approximation isn't the final solution. It should be a step towards a final solution.