[gccsdk] [Bug 256] New: GCC 4.7.4 Rel 1 Dev 2014-05-29: C++ exceptions failure

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Sat Jul 19 08:51:05 PDT 2014


http://www.riscos.info/bugzilla3/show_bug.cgi?id=256

           Summary: GCC 4.7.4 Rel 1 Dev 2014-05-29: C++ exceptions failure
           Product: GCC/GCCSDK
           Version: other
          Platform: Other
        OS/Version: RISC OS
            Status: NEW
          Severity: normal
          Priority: P1
         Component: C++ compiler
        AssignedTo: John.Tytgat at aaug.net
        ReportedBy: duncan.moore at gmx.com
   Estimated Hours: 0.0


gcc (GCCSDK GCC 4.7.4 Release 1 Development) 4.7.4 20140529 (prerelease)
[gcc-4_7-branch revision 211052]
SharedUnixLibrary 1.12
VirtualRPC-Adjust RISCOS 4.39, ARM 710

With this program:

#include <iostream>
int main(void) {
  try {
    throw 5;
  }
  catch (int i) {
    std::cout << "caught " << i << std::endl;
  }
  return 0;
}

I get:

*g++ exceptions.cc
*a/out
terminate called after throwing an instance of 'int'
terminate called recursively

Fatal signal received: Aborted

Stack backtrace:

Running thread 0x1eb80
  ( 1006e88) pc:  24aff10 lr:  24b0324 sp:  1006e8c  __write_backtrace()
  ( 1006ef4) pc:  24b0058 lr:  24b086c sp:  1006ef8  __unixlib_raise_signal()
  ( 1006f04) pc:  24b0844 lr:  24bc9e4 sp:  1006f08  raise()
  ( 1006f18) pc:  24bc998 lr:  2370b80 sp:  1006f1c  abort()
  ( 1006f3c) pc:  2370a8c lr:  236d3dc sp:  1006f40 
__gnu_cxx::__verbose_terminate_handler()()
  ( 1006f4c) pc:  236d3cc lr:  236d444 sp:  1006f50 
__cxxabiv1::__terminate(void (*)())()
  ( 1006f94) pc:  2370a8c lr:  236d3dc sp:  1006f98 
__gnu_cxx::__verbose_terminate_handler()()
  ( 1006fa4) pc:  236d3cc lr:  236d444 sp:  1006fa8 
__cxxabiv1::__terminate(void (*)())()
  ( 1006fec) pc:     8af8 lr:  24c6ac8 sp:  1006ff0  main()

*

With gcc 4.1.2 I get, as expected:

*a/out
caught 5
*

-- 
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.




More information about the gcc mailing list