[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 --- Comment #16 from Andrew Pinski --- (In reply to Martin Liška from comment #15) > Can the bug be marked as resolved? Not exactly with an empty struct we warn twice. That is take: struct MyClass{}; typedef struct MyClass MyClass; MyClass

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2018-11-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2017-04-19 Thread mdennis at merfer dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 --- Comment #14 from Matthew Dennis --- I believe `nodiscard` is only valid in C++17

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2017-04-19 Thread gcc at bobbyperu dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 --- Comment #13 from Sergio Martins --- Any point in using warn_unused_result instead of nodiscard on compilers that support both ? Probably a good time to close this bug. While it would be nice to have it fixed there's no point on wasting

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2016-04-28 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 --- Comment #12 from Jason Merrill --- Author: jason Date: Thu Apr 28 19:01:19 2016 New Revision: 235597 URL: https://gcc.gnu.org/viewcvs?rev=235597=gcc=rev Log: Implement C++17 [[nodiscard]] attribute. PR c++/38172 PR

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2016-04-28 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Jason Merrill changed: What|Removed |Added CC||tkrimer at epochlabs dot com ---

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2016-04-28 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Jason Merrill changed: What|Removed |Added CC||dushistov at mail dot ru --- Comment

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2016-04-28 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Jason Merrill changed: What|Removed |Added CC||gcc at bobbyperu dot info --- Comment

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2014-03-07 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|RESOLVED|NEW Last

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2014-03-07 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added CC||mdennis at

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2014-01-17 Thread karsten_burger at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Karsten Burger karsten_burger at gmx dot de changed: What|Removed |Added CC|

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2012-06-25 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Jörg Richter joerg.rich...@pdv-fs.de changed: What|Removed |Added CC|

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2011-10-09 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2010-11-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added CC||andrew at

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2008-11-18 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-11-18 22:14 --- *** Bug 31063 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2008-11-18 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-11-18 22:15 --- *** Bug 31742 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added