<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Exceptions are not catched"
   href="https://llvm.org/bugs/show_bug.cgi?id=27587">27587</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Exceptions are not catched
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.7
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows XP
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bitteldany@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16286" name="attach_16286" title="small project, 5 files">attachment 16286</a> <a href="attachment.cgi?id=16286&action=edit" title="small project, 5 files">[details]</a></span>
small project, 5 files

I create an object (constructor), which creates an object. Then calls a
function on the object "GetObject", which only throws an exception.
I cannot catch it, neither in object nor in main.

This is only reproducible in this exact way (see attached files).
G++ compiles and catches it fine. If I only use one header file it seems to
work aswell. If I inline the function it works also. But not this way.

Then there is #include <windows.h>, which might be related. It is //commented
right now, like this, it compiles fine, but the catch doesn't work.

If I un-comment it, it doesn't compile, it gives a "undefined reference to
'LoadJson::GetObjectA()' error.
The name of the function is "GetObject()".. without A.

I'm quite new to c++, let me know, if this is not supposed to work like this.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>