https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50588
--- Comment #18 from Mikael Pettersson <mikpelinux at gmail dot com> --- This is now fixed for 4.8+ by Eric's PR60452 patch. Verified by backporting that to 4.6.4 and seeing the bug on this PR's test case go away.