https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101680
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|spurious error: use of |[9/10 Regression] spurious |‘this’ in a constant |error: use of ‘this’ in a |expression |constant expression Known to work| |8.5.0 Keywords| |rejects-valid Known to fail| |10.1.0 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Seems fixed in GCC 11. But fails in 10.3.0 and was working in GCC 8.5.0.