I can confirm this bug. On my machine, it happens exactly like the OP says. Here is the output after I compile the test.cpp program that the OP provided, with gcc-4.1.1-21:
[EMAIL PROTECTED]:~/cprog$ ./tmp 0 allocated 0 tested 1 exception 2 allocated Segmentation fault -Brandon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]