https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54011
Dennis Lubert <plasmahh at gmx dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE |--- --- Comment #2 from Dennis Lubert <plasmahh at gmx dot net> --- The duplicate has been closed as resolved, however the compilation of this example has not changed and is imho still a good opportunity for optimization. Have a look on the gcc explorer with -O3 and gcc 7.3 : https://godbolt.org/g/qWvpSg