[Bug libstdc++/43014] map [] behaviour is inconsistent

2010-02-10 Thread gcc_bugzilla dot 20 dot marcelitom at inboxclean dot com
--- Comment #8 from gcc_bugzilla dot 20 dot marcelitom at inboxclean dot com 2010-02-10 21:23 --- Thanks Paolo. I did understand that map was passing a const char *. I wrongly assumed that it was using it to copy the pointed string to the map, but I learned from your first post

[Bug c++/43014] New: map [] behaviour is inconsistent

2010-02-09 Thread gcc_bugzilla dot 20 dot marcelitom at inboxclean dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc_bugzilla dot 20 dot marcelitom at inboxclean dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43014

[Bug libstdc++/43014] map [] behaviour is inconsistent

2010-02-09 Thread gcc_bugzilla dot 20 dot marcelitom at inboxclean dot com
--- 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