https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104077 Bug 104077 depends on bug 104436, which changed state.
Bug 104436 Summary: [12 Regression] spurious -Wdangling-pointer assigning local address to a class passed by value https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104436 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED