From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21846 invoked by alias); 15 Jan 2011 14:12:18 -0000 Received: (qmail 21838 invoked by uid 22791); 15 Jan 2011 14:12:17 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 15 Jan 2011 14:12:12 +0000 Received: by wyb40 with SMTP id 40so3813440wyb.20 for ; Sat, 15 Jan 2011 06:12:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.72.201 with SMTP id t51mr627262wed.6.1295100730163; Sat, 15 Jan 2011 06:12:10 -0800 (PST) Received: by 10.216.160.131 with HTTP; Sat, 15 Jan 2011 06:12:10 -0800 (PST) In-Reply-To: References: Date: Sat, 15 Jan 2011 14:12:00 -0000 Message-ID: Subject: Re: Core dump constructing a C++ string with NULL From: Jonathan Wakely To: Tom Browder Cc: Brian Budge , Ian Lance Taylor , GCC-help Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00220.txt.bz2 On 15 January 2011 14:05, Tom Browder wrote: > > =A0a g++ extension for a "dyn_string" ("full dynamic string") that has > that behavior How are you going to change a third-party library to use that?! (I don't know why you picked that name, fully dynamic string is an existing option, nothing to do with handling null pointers, see the libstdc++ configure docs for details.)