[Bug c++/120460] std::function ignores [[nodiscard]] attribute

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 4 13:37:37 GMT 2025


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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That's Bug 43167, which is separate from whether [[nodiscard]] should be
affected by system headers.


More information about the Gcc-bugs mailing list