[GCC-XML] KeyError

Roman Yakovenko roman.yakovenko at gmail.com
Sun Jun 24 01:10:00 EDT 2007


On 6/23/07, Jeremy Sanders <jss at ast.cam.ac.uk> wrote:
> Hi -
>
> I get the following problem when trying to use py++ on a c++ header file:
> ...
> If anyone wants to have a look, then can get the preprocessed source from
>
> http://www-xray.ast.cam.ac.uk/~jss/data/problem.h.gz

Thanks for the error report. The bug was caused by a wrong treatment
of exception types:

struct ExpressionError{};

void buggy() throw( ExpressionError& );
------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The simple work-around is to use "typedef"

typedef ExpressionError& ExpressionErrorRef;
void buggy() throw( ExpressionErrorRef );

I just fixed the bug( SVN revision 1078 ).

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the gccxml mailing list