[Bug c++/116441] [[nodiscard]] attribute ignored in some cases

2024-08-27 Thread leonid.satanovsky at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116441 --- Comment #7 from Leonid Satanovsky --- (In reply to Andrew Pinski from comment #6) > This is a dup of bug 85973. > > I even make mention of moving the attribute to the constructor makes the > warning/error happen: > > Note if we move the att

[Bug c++/85973] [[nodiscard]] on class shall emit a warning for unused anonymous variable

2024-08-27 Thread leonid.satanovsky at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85973 --- Comment #6 from Leonid Satanovsky --- As you are marking other bugs as duplicates of the current bug, please don't forget to transfer the useful test cases not mentioned in current bug (e.g. GccFailedNoDiscard2 case seen below): struct [[nod

[Bug c++/116441] [[nodiscard]] attribute ignored in some cases

2024-08-21 Thread leonid.satanovsky at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116441 --- Comment #5 from Leonid Satanovsky --- N.B.: #include is for sure not needed for reproduction (just a leftover from earlier experiments)

[Bug c++/116441] [[nodiscard]] attribute ignored in some cases

2024-08-21 Thread leonid.satanovsky at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116441 --- Comment #4 from Leonid Satanovsky --- Ok, thank you.

[Bug c++/116441] [[nodiscard]] attribute ignored in some cases

2024-08-21 Thread leonid.satanovsky at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116441 --- Comment #2 from Leonid Satanovsky --- Dear gcc maintainers, one little asking: if that is not contradicting with the general guidelines and since you are using bug reproductions provided by the modest users of gcc, could you please also refe

[Bug c++/116441] New: [[nodiscard]] attribute ignored in some cases

2024-08-21 Thread leonid.satanovsky at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116441 Bug ID: 116441 Summary: [[nodiscard]] attribute ignored in some cases Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c+

[Bug c++/79502] [c++1z] [[nodiscard]] attribute ignored for class template

2024-08-21 Thread leonid.satanovsky at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79502 Leonid Satanovsky changed: What|Removed |Added CC||leonid.satanovsky at gmail dot com

[Bug c++/88313] generic lambda in default template argument

2024-07-29 Thread leonid.satanovsky at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88313 Leonid Satanovsky changed: What|Removed |Added CC||leonid.satanovsky at gmail dot com