https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87066
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rejects-valid | --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > new B{}; //error: use of deleted function ~B() (which was rejected before) was fixed in GCC 11, see PR 59238. The other two are still accepted so recording this PR just for that case only.