C++ failures / tests
authorDavid Barnett <daviebdawg@gmail.com>
Sat, 15 May 2010 20:47:40 +0000 (13:47 -0700)
committerDavid Barnett <daviebdawg@gmail.com>
Sat, 15 May 2010 20:47:40 +0000 (13:47 -0700)
commit57fe4a6eba35cf4a35bcfa101b832bd4d9545ab5
treece9b9f306f483e83d64feb5763811f7f7f2433de
parent8be7e8554195d604d18a7bb270014dd79d3c6255
C++ failures / tests

I noticed two failures to compile that I think are bugs:
 - "ctypedef Foo[int] Bar" gives a syntax error (i.e., there doesn't seem to be any way to typedef a templated type).
 - Defining a struct in a namespace and trying to convert it to a Python dict doesn't work. Instead you get nasty "__pyx_convert__to_py_THENAMESPACE" errors from the C++ compiler (it doesn't mangle the cname properly and tries to define __pyx_convert__to_py_THENAMESPACE::THESTRUCT).

I made a patch to *add tests* for the two bugs (not fix them).
tests/compile/cpp_structs.pyx [new file with mode: 0644]
tests/compile/cpp_templated_ctypedef.pyx [new file with mode: 0644]
tests/compile/point.h [new file with mode: 0644]