http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49166
Nicola Pero <nicola at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Nicola Pero <nicola at gcc dot gnu.org> 2011-05-26 10:14:13 UTC --- Yes. I have a Linux/x86-64 machine, and the patch I committed fixes the regressions on there too. :-) The reason is that, due to the missing function declaration, the compiler would assume the return value is 'int', while it's 'Class' (a pointer). They differ in size on 64-bit and that would cause the failures. Thanks