https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97712
Jonathan Wakely changed:
What|Removed |Added
Resolution|--- |DUPLICATE
Status|NEW
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97712
--- Comment #4 from Paco Arjonilla ---
(In reply to Jakub Jelinek from comment #3)
> [[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)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97712
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97712
--- Comment #2 from Marek Polacek ---
Looks like we don't track attributes properly for OBJ_TYPE_REFs in
maybe_warn_nodiscard.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97712
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
Last recon