https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71587
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |c++ --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Without: > template void fn2<false>(); No versions of GCC will inline fn2<false> Starting in GCC 12, with that line still there, GCC does inline it now.