Re: [Cython] cython crash: default parameters in methods of template cppclass

2011-03-28 Thread Robert Bradshaw
On Tue, Mar 22, 2011 at 7:21 AM, Simon Anders wrote: > Hi, > > I found a little bug in Cython 0.14.1. > > The following causes the Cython compiler to throw an exception: > > ---8<--- > cdef extern from "foo.h": >   cdef cppclass foo[ T ]: >      bar( int b = 0 ) > > cdef foo[ int ] a > a.bar( 1 )

[Cython] cython crash: default parameters in methods of template cppclass

2011-03-22 Thread Simon Anders
Hi, I found a little bug in Cython 0.14.1. The following causes the Cython compiler to throw an exception: ---8<--- cdef extern from "foo.h": cdef cppclass foo[ T ]: bar( int b = 0 ) cdef foo[ int ] a a.bar( 1 ) ---8<--- The exception is "AttributeError: 'CFuncType' object has no a