[Cython] errors in C++ tests

Stefan Behnel stefan_ml at behnel.de
Sun Jul 8 12:33:38 CEST 2012


Hi,

I'm seeing C++ compiler errors errors in the C++ tests.

https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests/BACKEND=cpp,PYVERSION=py3k/491/testReport/

"""
cpp_operators.cpp: In function ‘void __Pyx_CppExn2PyErr()’:
cpp_operators.cpp:442: error: expected unqualified-id before ‘&’ token
cpp_operators.cpp:442: error: expected `)' before ‘&’ token
"""

The failing code line is this:

"""
  } catch (const std::bad_alloc& exn) {
"""

That line looks ok to me. It started failing after I enabled C++ error
handling for default constructors, which then lead to the above function
being generated into the module code.

Does anyone know what to make of this?

Stefan


More information about the cython-devel mailing list