https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106151
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |c++ --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is really interesting. -std=c++17 produces {} for both. -std=c++11/-std=c++14 produces the long code for both while -std=c++20 produces the wrose code for Foo::clear.