<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Exceptions are not catched"
   href="https://llvm.org/bugs/show_bug.cgi?id=27587">bug 27587</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>rnk@google.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WORKSFORME
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Exceptions are not catched"
   href="https://llvm.org/bugs/show_bug.cgi?id=27587#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Exceptions are not catched"
   href="https://llvm.org/bugs/show_bug.cgi?id=27587">bug 27587</a>
              from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
        <pre>You filed this as a clang 3.7 bug. Windows exception handling improved
drastically between Clang 3.7 and Clang 3.8. I would recommend using 3.8 if you
can.

I compiled your code with /EHsc and it worked fine:

# In a 32-bit MSVC environent
$ clang-cl -m32 -EHsc -fms-compatibility-version=19 -I. main.cpp
ENV/ENV_setup.cpp JSN/JSN_load.cpp -Fet.exe && ./t.exe
we call a function in LoadJson object which throws an exception
we cannot catch exception!

# In a 64-bit MSVC environment
$ clang-cl -m64 -EHsc -fms-compatibility-version=19 -I. main.cpp
ENV/ENV_setup.cpp JSN/JSN_load.cpp -Fet.exe && ./t.exe
we call a function in LoadJson object which throws an exception
we cannot catch exception!

This prints the same thing as MSVC.</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>