https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68986
--- Comment #5 from Mark Wielaard <mark at gcc dot gnu.org> --- Thanks for finding the duplicate and creating a small reproducer. This is indeed a GCC 6 regression. valgrind builds fine with gcc (GCC) 5.3.1 20151207 (Red Hat 5.3.1-2) but fails with gcc (GCC) 6.0.0 20160123 (experimental). But it looks like we were just lucky since you were able to tweak the reproducer to also fail with 5.3.