This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/31368] basic_string and unsigned short leads to memory fault
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2007 18:25:25 -0000
- Subject: [Bug libstdc++/31368] basic_string and unsigned short leads to memory fault
- References: <bug-31368-14317@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from pcarlini at suse dot de 2007-03-27 19:25 -------
By the way, as a matter of portability, isn't a good idea to use the string
class with anything != char and wchar_t: things usually work in rather recent
releases of GCC only because we are delivering a "generic" implementation of
char_traits, which cannot be assumed, in general (and that's why probably your
specific issue with empty strings has not been reported earlier).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31368