https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
--- Comment #36 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jason Merrill from comment #35) > Is there a reason you can't use [[nodiscard]]? ...ah, because this is a bug report against the C compiler.