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]

c++/571: throw() generate SIGABRT for other types than int



>Number:         571
>Category:       c++
>Synopsis:       throw() generate SIGABRT for other types than int
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 26 12:46:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     hamiltonc@via-rs.net
>Release:        egcs-2.91.66
>Organization:
>Environment:
Red Hat Linux 6.2, egcs-1.1.2-30, glibc-2.1.3-21
>Description:
If a class has a method that could throw an exception and
exception type is something like a typedef to unsigned int
the program aborts with a signal SIGABRT no matter what you
provide try/catch blocks or not.
>How-To-Repeat:
Happens all the times you run the program.
>Fix:
We dont have a clue :)
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="throw-bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="throw-bug.cpp"

I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCi8vIGlmIHlvdSBjaGFu
Z2UgU29tZVR5cGUgdG8gaW50IHRoZSBwcm9ncmFtIHJ1bnMgZmxhd2xlc3NseQp0eXBlZGVmIC8q
dW5zaWduZWQqLyBpbnQgU29tZVR5cGU7CgpjbGFzcyBUZXN0CnsKcHVibGljOgogIFRlc3QoKSB7
IG4gPSAwOyB9CiAgaW50IG1ldGhvZCgpIHRocm93ICggU29tZVR5cGUgKTsKcHJpdmF0ZToKICBp
bnQgbjsKfTsKCmludCBUZXN0OjptZXRob2QoKSB0aHJvdyAoIFNvbWVUeXBlICkKewogIGlmICgr
K24gPiA1KQogICAgdGhyb3cgMTsKICByZXR1cm4gbjsKfQoKaW50IG1haW4oKQp7CiAgVGVzdCB0
ZXN0OwoKICB0cnkgewogICAgZm9yIChpbnQgaSA9IDA7IGkgPCAxMDsgKytpKQogICAgICBjb3V0
IDw8ICJUZXN0OjptZXRob2QoKSByZXR1cm5zICIgPDwgdGVzdC5tZXRob2QoKSA8PCBlbmRsOwog
IH0gY2F0Y2ggKGludCBuKSB7CiAgICBjb3V0IDw8ICJUZXN0OjptZXRob2QoKSByYWlzZWQgYW4g
ZXhjZXB0aW9uICgiIDw8IG4gPDwgIikiIDw8IGVuZGw7CiAgfSBjYXRjaCAoLi4uKSB7CiAgICBj
b3V0IDw8ICJUZXN0OjptZXRob2QoKSByYWlzZWQgYW4gdW5rbm93biBleGNlcHRpb24hIiA8PCBl
bmRsOwogIH0KICByZXR1cm4gMDsKfQoKCgoK

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