https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84476
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.2.0, 11.0, 8.3.0, 9.2.0 Ever confirmed|0 |1 CC| |msebor at gcc dot gnu.org Last reconfirmed| |2021-04-21 Status|UNCONFIRMED |NEW --- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed with GCC 11 and test case in comment #1. Attribute warn_unused_result does the right thing here.