------- Comment #5 from gcc_bugzilla dot 20 dot marcelitom at inboxclean dot com 2010-02-10 04:00 ------- Thanks Andrew and Paolo, apologies for my mistake. I have learnt something.
According to what you wrote, a "seemingly natural" code like for(;;) { sElement = SomeString(...); if( hash.find(sElement.c_str()) == hash.end() ) //not found hash[sElement.c_str()] = SomeNumber(...); } is wrong, which comes to me as a surprise. It probably means I need to learn more. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43014