https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85192
--- Comment #2 from Vasilis.Vlachoudis at cern dot ch <Vasilis.Vlachoudis at cern dot ch> --- I am using 7.2.0 from ubuntu. I've just checked on the latest Fedora with 7.2.1 and it gives the same result as in your case, so probably it is fixed.