std::map has four template arguments, but the code python/std_map.i only honors the first two. This makes e.g swiginac and syfi fail to build with swig 2.0.4 , . The attached patch fixes this bug.
This is fixed in revision 12759, and will appear in the next SWIG release.
Closing as it is now fixed for swig-2.0.5.