https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30829
Roger Sayle <roger at nextmovesoftware dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger at nextmovesoftware dot com Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Roger Sayle <roger at nextmovesoftware dot com> --- This is now fixed on mainline. According to godbolt.org this was fixed sometime between GCC 4.5.3 and GCC 4.6.4 (so it's been fixed for quite a while).