Re: [Cython] Memory views: dereferencing pointer does break strict-aliasing rules

2013-07-02 Thread Robert Bradshaw
On Tue, Jul 2, 2013 at 4:54 AM, Yury V. Zaytsev wrote: > Hi, > > The simplest possible program using memory views compiles with a large > number of warnings for me, even for a rather outdated version of gcc: > > def hello(int [:] a): > print(a, "world") > > If I translate it with the l

[Cython] Memory views: dereferencing pointer does break strict-aliasing rules

2013-07-02 Thread Yury V. Zaytsev
Hi, The simplest possible program using memory views compiles with a large number of warnings for me, even for a rather outdated version of gcc: def hello(int [:] a): print(a, "world") If I translate it with the latest released version of Cython like this: cython cpp.pyx cyt