From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15118 invoked by alias); 27 Mar 2007 18:25:39 -0000 Received: (qmail 14773 invoked by uid 48); 27 Mar 2007 18:25:25 -0000 Date: Tue, 27 Mar 2007 18:25:00 -0000 Message-ID: <20070327182525.14772.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/31368] basic_string and unsigned short leads to memory fault In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pcarlini at suse dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg02598.txt.bz2 ------- 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