https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89070
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- The problem is specific to [[nodiscard]] and doesn't affect attribute warn_unused_result (either the traditional form or [[gnu::warn_unused_result]]).