https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86436
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The reason Foldable are not folded is because Foldable<0> and Foldable<42> clases are different. Yes they have the same layout but for aliasing rules they are different.