http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48695
--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2011-04-19 22:15:23 UTC --- Created attachment 24049 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24049 partially reduced testcase $ g++ testcase.C -O2 $ valgrind -q ./a.out ==20686== Invalid write of size 4 ==20686== at 0x400625: main (testcase.C:54) ==20686== Address 0x4 is not stack'd, malloc'd or (recently) free'd