This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/31368] basic_string and unsigned short leads to memory fault



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]