https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59950
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[9/10/11/12 Regression] |[9/10/11 Regression] Bogus |Bogus diagnostic "taking |diagnostic "taking address |address of temporary" |of temporary" taking |taking address of trivial |address of trivial no-op |no-op assignment to |assignment to temporary |temporary with empty class |with empty class --- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- Fixed for GCC 12 so far.