This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/77364] New: -fnon-call-exceptions does not work


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77364

            Bug ID: 77364
           Summary: -fnon-call-exceptions does not work
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: theubik at mail dot ru
  Target Milestone: ---

Created attachment 39496
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39496&action=edit
example1.cpp and example2.cpp

> g++ -std=c++11 -fnon-call-exceptions example1.cpp && ./a.out
> terminate called after throwing an instance of 'std::runtime_error'
    what():  Segmentation fault
  Aborted (core dumped)

> g++ -std=c++11 example1.cpp && ./a.out
> Exception: Segmentation fault

> g++ -std=c++11 -fnon-call-exceptions example2.cpp && ./a.out
> Exception: Segmentation fault

> g++ -std=c++11 example2.cpp && ./a.out
> terminate called after throwing an instance of 'std::runtime_error'
    what():  Segmentation fault
  Aborted (core dumped)

g++ (4.7.3, 4.8.1, 4.9.2)
Linux ubik 3.2.0-101-generic #141-Ubuntu SMP Thu Mar 10 21:43:24 UTC 2016
x86_64 x86_64 x86_64 GNU/Linux

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]