title: Instant crash on throw statement with Qt5
body: <p>When I try using Exceptions with Qt the application crashes instant on any throw statement, ignoring any <code>catch(...)</code>-clauses. This is the minimal code that causes the crash:</p>
  
  <pre><code>#include &lt;QString&gt;
  
  int main ( ) {
      try {
          throw 1;
      } catch (...) {
          QString a;
      }
  }
  </code></pre>
  
  <p>Without the <code>QString</code> it works fine, even if the library is included.</p>
  
  <p>The Exception Code I get is </p>
  
  <blockquote>
    <p>40000015</p>
  </blockquote>
  
  <p>and the offset:</p>
  
  <blockquote>
    <p>0000bb3f</p>
  </blockquote>
  
  <p>I'm using <strong>QtCreator 2.7.2</strong> with <strong>Qt 5.1.0</strong> and <strong>mingw 4.8</strong> (the version shipped with QtCreator).
  I used windows 8 for my builds.</p>
  
  <p>After some research in the web I tried to add the <code>CONFIG+=exceptions</code> flag to the *.pro-file and still got the crash.
  When I read that Qt can be build without exceptions (whatever that means) I checked the default values as I'm using the pre-compiled version shipped with the QtCreator; this one should be built including exceptions.</p>
  
  <p>I checked the temp code after the pre-compiler and the pre-compiler didn't change anything for the main function.</p>
  
  <p>When I tried debugging the code I noticed that it didn't execute any line after the throw statement, it really crashes exactly there.</p>
  
  <p>I'm still a beginner with Qt; is this a problem for this built of Qt? should I just get a newer one? Or did I miss some configs I could change in order to get it working?</p>
  
  <p><strong>EDIT:</strong> After Frank Osterfeld asked me to I tried with several other classes. Here are my findings:</p>
  
  <ul>
  <li>working as expected:
  
  <ul>
  <li><code>std::string</code></li>
  <li><code>QPoint</code></li>
  <li><code>QChar</code></li>
  <li><code>QDate</code></li>
  <li><code>QMessageLogger</code></li>
  </ul></li>
  <li>crashing:
  
  <ul>
  <li><code>QString</code></li>
  <li><code>QByteArray</code></li>
  <li><code>QDir</code></li>
  <li><code>QException</code></li>
  <li><code>QFile</code></li>
  <li><code>QRegularExpression</code></li>
  <li><code>QSet&lt;int&gt;</code></li>
  <li><code>QTimer</code></li>
  </ul></li>
  </ul>