https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87063
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- EDG also rejects this: ``` "<source>", line 21: error: function "foo::operator=(const foo &)" (declared implicitly) cannot be referenced -- it is a deleted function a = foo(); ^ ``` I remember there being a defect report in this area too.