%module template_typedef_cplx5 %{ #include %} %inline %{ // This typedef triggers an inifinite recursion // in the next test1() nd test2() function declarations typedef std::complex complex; struct A { complex test1() { complex r; return r; } std::complex test2() { std::complex r; return r; } }; %}