[Cython] (no subject)
Dan Gindikin
dg at pnylab.com
Wed Apr 9 23:10:44 CEST 2008
Sven Berkvens-Matthijsse <sven at ...> writes:
>
> > Hi,
>
> Hello,
>
> > 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.
More information about the Cython-dev
mailing list