c++ trivial try-catch causes abort
<p>the simple code  below</p>

<pre><code>// g++ centro.cc -o centro

#include &lt;iostream&gt;
using namespace std;

int  main(int argc, char *argv[])
{
    try
    {
        cout &lt;&lt; "Going to throw" &lt;&lt; endl;
        throw;
    }
    catch(...)
    {
        cout &lt;&lt; "An exception occurred" &lt;&lt; endl;
    }
    return 0;
}
</code></pre>

<p>produces an abort:</p>

<pre><code>Going to throw
terminate called without an active exception
Aborted (core dumped)
</code></pre>

<p>I don't understand what's wrong, can anybody point me in the right direction?</p>
