------- Comment #3 from rguenth at gcc dot gnu dot org 2009-12-17 15:17 ------- Btw, the single-file testcase
#include <string> #include <map> int main () { typedef std::map<int, std::string> Map; static Map m; Map::const_iterator it = m.find(0); if (it != m.end()) { std::string s = it->second; } } fails the same way (with -flto). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42401