libstdc++/9756: __verbose_terminate_handler enters infinite loop
Wed Feb 19 16:06:00 GMT 2003

>Number:         9756
>Category:       libstdc++
>Synopsis:       __verbose_terminate_handler enters infinite loop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 19 16:06:00 UTC 2003
>Release:        unknown-1.0
stephen_[914]> g++ -v
Reading specs from /smw/gnu/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Configured with: /home/stephenw/gnu/gcc/configure --prefix=/smw/gnu --enable-threads --enable-languages=c++
Thread model: posix
gcc version 3.4 20030219 (experimental)
The following complete program will enter an infinite loop when run, emitting the message

terminate called after throwing an instance of 'int'

int main() { throw 0; }

Note that the error occurs for any exception not caught.  This is a regression from 3.2.
echo "int main() { throw 0; }" > dc.cpp
g++ -o dc dc.cpp


More information about the Gcc-bugs mailing list