https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100409
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |101087 --- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Richard Biener from comment #10) > (In reply to Richard Biener from comment #7) > > Jason, any idea? ... > which leaves us with > > FAIL: g++.dg/warn/noeffect4.C -std=gnu++98 (test for warnings, line 84) > FAIL: g++.dg/warn/noeffect4.C -std=gnu++14 (test for warnings, line 84) > FAIL: g++.dg/warn/noeffect4.C -std=gnu++17 (test for warnings, line 84) > FAIL: g++.dg/warn/noeffect4.C -std=gnu++2a (test for warnings, line 84) > > not diagnosing > > sizeof (x++); // { dg-warning "no effect" } > > not sure what should happen to the x++ side-effect (throwing). Ah, that's likely PR101087 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101087 [Bug 101087] [9/10/11/12 Regression] Unevaluated operand of sizeof affects noexcept operator