[Bug c++/97712] Attribute nodiscard in virtual methods is ignored

2021-06-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97712 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/97712] Attribute nodiscard in virtual methods is ignored

2020-11-14 Thread pacoarjonilla at yahoo dot es via Gcc-bugs
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)

[Bug c++/97712] Attribute nodiscard in virtual methods is ignored

2020-11-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
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

[Bug c++/97712] Attribute nodiscard in virtual methods is ignored

2020-11-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
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.

[Bug c++/97712] Attribute nodiscard in virtual methods is ignored

2020-11-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
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