swig 4.5.1 segfaults (infinite recursion between Swig_symbol_typedef_reduce
and Swig_symbol_template_reduce in Swig/symbol.c) on a typedef in a
namespace that has the same name as the class in its template argument.
This makes siconos FTBFS. It works with 4.4.1-2.
Reproducer, run with: swig -c++ -python test.i
%module m
namespace std {
template<class T> class shared_ptr {};
template<class T> class set { public: typedef T *iterator; };
}
class A;
namespace SP { typedef std::shared_ptr<A> A; }
typedef std::set<SP::A> ASet;
typedef ASet::iterator AIterator;