https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84476
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2021-04-21 00:00:00 |2021-6-2 --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- In PR 97712 Jakub said: [[nodiscard]] is a function attribute rather than function type attribute, so it really doesn't apply to virtual calls (unless it can be devirtualized early).