https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63343
Bug ID: 63343 Summary: g++ accepts incompatible iterator assignemt Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: pluto at agmk dot net hi, the current g++ accepts incompatible iterator assignment. #include <map> int main() { std::map< int, int > m; std::multimap< int, int >::iterator i = m.end(); } only with _GLIBCXX_DEBUG there's an expected build error.