Exception translation generates invalid code if return value is wrapped (i.e. not primitive)
Bug #780945 reported by
Kirill Lapshin
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyBindGen |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Adding to foo.h
Tupl my_throwing_func () throw(std:
generates invalid C++ code, which fails to compile with following error:
default/
default/
Same problem can also be triggered with new 'throw' annotation:
// -#- throw=std:
Tupl my_throwing_func ();
Related branches
Changed in pybindgen: | |
status: | New → Fix Committed |
Changed in pybindgen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The bug still manifests if the return value is a reference. The error generated now is:
foo.cc: In function 'PyObject* _wrap_PyFoo_ errorFunc( PyFoo*, PyObject*, PyObject*)':
foo.cc:630: error: 'retval' declared as reference but not initialized