This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Core dump constructing a C++ string with NULL
On Sat, Jan 15, 2011 at 07:51, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 15 January 2011 12:33, Tom Browder wrote:
>>
>> Here's the situation:
...
>> The compiler option might be something like:
>>
>> ?"--auto-catch-c++-null-string-exception"
>>
...
> It can't be a compile-time option, it would create ODR violations if
> some files are compiled with that option and others are not. ?So it
> would have to be an option used when building and installing GCC.
>
> Rather than rebuilding GCC with that option, it would be quicker and
> easier to fix the open-source library yourself, or if you really think
> it's a good idea to ignore that error, just patch your local GCC
> headers in order to be able to carry on.
Okay, good point. Then how about this:
a g++ extension for a "dyn_string" ("full dynamic string") that has
that behavior
(It's the Scotch-Irish in me.)
Regards,
-Tom
Thomas M. Browder, Jr.
Niceville, Florida
USA