https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101682
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Paul Eggert from comment #5) > PS. It is a bit annoying that one can't do this: > > int f (int) [[nodiscard]]; This appertains to the function type, not the function declaration.