public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58525] New: __cxa_throw_bad_array_new_length is generated with -fno-exceptions
@ 2013-09-25  7:22 aivchenk at gmail dot com
  2013-09-25  7:26 ` [Bug c++/58525] " aivchenk at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: aivchenk at gmail dot com @ 2013-09-25  7:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58525

            Bug ID: 58525
           Summary: __cxa_throw_bad_array_new_length is generated with
                    -fno-exceptions
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aivchenk at gmail dot com

When I compile the following code (modified version of
g++.dg/cpp0x/bad_array_new1.C without try/catch):

// { dg-options -std=c++11 }
// { dg-do run }

#include <new>

void * f(int i)
{
  return new int[i];
}

int main()
{
      f(-1);
}

with -fno-exceptions option, I still get the call to
__cxa_throw_bad_array_new_length:

> nm ./bad_array_new1.o | grep cxa
    U __cxa_throw_bad_array_new_length


The same goes for __cxa_throw_bad_array_length


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

end of thread, other threads:[~2024-03-27  1:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-25  7:22 [Bug c++/58525] New: __cxa_throw_bad_array_new_length is generated with -fno-exceptions aivchenk at gmail dot com
2013-09-25  7:26 ` [Bug c++/58525] " aivchenk at gmail dot com
2013-10-02 12:07 ` paolo.carlini at oracle dot com
2013-10-10 12:10 ` aivchenk at gmail dot com
2013-11-23 16:28 ` jason at gcc dot gnu.org
2013-12-30 22:13 ` reichelt at gcc dot gnu.org
2014-01-09  5:19 ` aivchenk at gmail dot com
2014-01-17 18:34 ` reichelt at gcc dot gnu.org
2024-03-27  1:28 ` pinskia at gcc dot gnu.org

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).