[Bug c++/80896] [[nodiscard]] is ignored for functions returning references

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Wed May 31 11:40:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80896

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-05-31
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com
     Ever confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Looks like a call of maybe_warn_nodiscard is missing from the main
convert_to_void switch.


More information about the Gcc-bugs mailing list