public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Core dump constructing a C++ string with NULL
@ 2011-01-13 19:56 Tom Browder
  2011-01-13 20:04 ` Brian Budge
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Tom Browder @ 2011-01-13 19:56 UTC (permalink / raw)
  To: GCC-help

It would be nice if this would construct an empty string:

  #include <string>
  std::string s(0);

At the moment that gives a core dump.

Is that defined behavior according to the standard?  If not, what
about a g++ enhancement?

Thanks.

Regards.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2011-01-15 15:06 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-13 19:56 Core dump constructing a C++ string with NULL Tom Browder
2011-01-13 20:04 ` Brian Budge
2011-01-13 20:50 ` Jonathan Wakely
2011-01-13 20:59 ` Ian Lance Taylor
2011-01-14 16:20   ` Tom Browder
2011-01-14 16:47     ` Jonathan Wakely
2011-01-14 17:00       ` Tom Browder
2011-01-14 17:05         ` Jonathan Wakely
2011-01-14 17:17           ` Jonathan Wakely
2011-01-14 17:39             ` Tom Browder
2011-01-14 17:38         ` Ian Lance Taylor
2011-01-14 17:44           ` Tom Browder
2011-01-14 17:48             ` Brian Budge
2011-01-15 12:33               ` Tom Browder
2011-01-15 13:52                 ` Jonathan Wakely
2011-01-15 14:06                   ` Tom Browder
2011-01-15 14:12                     ` Jonathan Wakely
2011-01-15 14:15                       ` Jonathan Wakely
2011-01-15 15:06                         ` Tom Browder
2011-01-14 18:04             ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).