http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-25 11:56:50 UTC --- My code was only meant to show a possible problem with invalid expressions using void* not to solve your issue. GCC's bugzilla isn't a tutorial site and "my code doesn't work" isn't a compiler bug.