[Bug other/95913] New: Capturing lambdas inlining behavior changed in GCC 10.x

2020-06-26 Thread leonid.satanovsky at gmail dot com
Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: leonid.satanovsky at gmail dot com Target Milestone: --- Greetings! There is a bug suspicion, and I wanted to report it by the following example. https://godbolt.org/z/m6g3Ug GCCs 9.x and

[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++/116441] New: [[nodiscard]] attribute ignored in some cases

2024-08-21 Thread leonid.satanovsky at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: leonid.satanovsky at gmail dot com Target Milestone: --- The issue is similar to 79502 and still exists in latest GCC. Here are more diverse examples (including non-templates): https://godbolt.org/z/faaf3K1bj

[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] [[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 #5 from Leonid Satanovsky --- N.B.: #include is for sure not needed for reproduction (just a leftover from earlier experiments)

[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-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++/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