------- Comment #1 from pinskia at gcc dot gnu dot org 2010-02-09 22:48 ------- I don't think this is a bug. sElement.c_str() returns a temporary storage which gets destroyed when sElement changes (via the operator= method).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43014