https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85730
--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> --- (In reply to Gabriel Ravier from comment #2) > Seems like they've all got identical code generation over here since GCC 7, > and the GCC 6 code generation is just very bad for bar (although GCC 7 also > changed bar and baz's code generation, which previously was as bar's is in > the description) I've got a different observation (using the branch HEADs, at -O3): gcc-6 - ICEs gcc-7, gcc-8, gcc-9 - the same code generated as in comment #1 gcc-10, gcc-11, gcc-12 - all functions are the same, bar() now has the same assembly as foo() and baz() - but is that the optimal form?