This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/78822] [cleanup] replace static char buffers by std:string
- From: "palves at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Dec 2016 17:30:34 +0000
- Subject: [Bug fortran/78822] [cleanup] replace static char buffers by std:string
- Auto-submitted: auto-generated
- References: <bug-78822-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78822
--- Comment #20 from Pedro Alves <palves at redhat dot com> ---
And in addition, since GCC is already using new/new[] to heap allocate its own
classes, GCC is _already_ inconsistent with allocation failure -- if one of
those currently fails, you'll end up with a C++ exception that nobody is
catching, so GCC dies a horrible death. Replacing operator new of course would
handle those too.