[Bug c++/61080] Spurious no return statement warning with deleted operators

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Tue May 6 18:31:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61080

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I think it's because that change of mine amounts to explicitly saying that a
deleted function is anyway a defined function but with an empty body (what
else?) thus no return statement. I briefly wondered whether that could give
problems, possibly for unused arguments too. So, a possible approach would be
returning earlier from that front-end function which I changed (eg, see my
initial proposal for a draft, which you could probably try) or we could try to
cope with the fallbacks as you already tried... Maybe Jason could provide some
initial guidance?



More information about the Gcc-bugs mailing list