[Bug c++/114104] nodiscard not diagnosed on synthesized operator!=

2024-02-26 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114104 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/114104] nodiscard not diagnosed on synthesized operator!=

2024-02-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114104 --- Comment #3 from Jonathan Wakely --- I don't care whether GCC synthesizes an operator!= that inherits the nodiscard attribute, or it generates a discarded bool using the built-in !, but there needs to be a warning either way. Currently a

[Bug c++/114104] nodiscard not diagnosed on synthesized operator!=

2024-02-25 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114104 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl ---

[Bug c++/114104] nodiscard not diagnosed on synthesized operator!=

2024-02-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114104 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0