http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58188 --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- This is also fixed in mainline. I'm adding the testcase and closing the bug.