[Bug lto/42401] wrong-code with -flto
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Dec 17 15:17:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list