[Cython] (no subject)

Stefan Behnel stefan_ml at behnel.de
Thu Apr 10 13:59:26 CEST 2008



Dan Gindikin wrote:
> Sven Berkvens-Matthijsse <sven at ...> writes:
>>> does anyone know how to get rid of all the "dereferencing
>>> type-punned pointer will break strict-aliasing rules" warnings that
>>> I see in the tests? I mean, except by switching them off on the gcc
>>> command line or passing "-fno-strict-aliasing". :)
> 
> I think you really need "-fno-strict-aliasing". I've seen "cdef class"
> inheritance break without it: the vtable of class method pointers gets screwed up
> between base and derived classes, and you end up calling the wrong functions.

Thanks Sven, Dan,

I guess that's the option to take then.

Stefan



More information about the Cython-dev mailing list