Package: swig
Version: 4.5.1-2
Severity: serious
Tags: ftbfs
Control: affects -1 src:siconos
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;
--
⠀⢀⣴⣾⠿⠿⣿⣶⣄⠀ Nico Della Torre (nicoz)
⢠⣿⠋⠀⣠⢄⠀⠙⣿⣇ Debian Maintainer · Ubuntu
⢾⡇⠀⣾⠀⠀⠀⢀⣿⡟ https://wiki.debian.org/nicoz
⠘⣇⠀⠘⢷⣶⣶⣾⠟⠁ IRC: nicoz @ OFTC, Libera.Chat
⠀⠈⠣⢄⠀⠀⠀⠀⠀⠀ GPG: 0456 E8BC 1DC0 B027 EF8D 66A6 9549 3787 F6F1 9F03