Since SWIG 2.0.5 a regression has been introduced where an out-typemap overshadows a corresponding in typemap. It includes typemaps using typdedef and is very subtle. The attached tar ball with three small files reproduces the bug for SWIG 2.0.5, 2.0.6, but runs fine for SWIG 2.0.4.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Untar and type make to reproduce the bug
Thanks for a great testcase. This regression has been fixed for swig-2.0.7.