<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - make_exception_ptr of anom exception fails with Clang 6.0.0"
   href="https://bugs.llvm.org/show_bug.cgi?id=36327">36327</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>make_exception_ptr of anom exception fails with Clang 6.0.0
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0
          </td>
        </tr>

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

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

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When testing clang-cl 6.0.0-RC2, I got some compilation errors on code which
compiled with 5.0.0 and MSVC2015

========= t.cpp ===========
#include <exception>

namespace
{
   struct A : public std::exception
   {
   };
}

int main()
{
   std::make_exception_ptr(A{});
   return 0;
}
======== run.bat ==========

cl.exe /EHsc t.cpp /std:c++14
llvm_5_0_0\bin\clang-cl.exe -fms-compatibility-version=19 /EHsc t.cpp
/std:c++14

llvm_6_0_0-RC2\bin\clang-cl.exe -fms-compatibility-version=19 /EHsc t.cpp
/std:c++latest

======== result ===========
Vs2015\VC\INCLUDE\exception(369,27):  error: function
'std::__GetExceptionInfo<(anonymous namespace)::A>' is used but not
      defined in this translation unit, and cannot be defined in any other
translation unit because its type does not have linkage
template<class _Ex> void *__GetExceptionInfo(_Ex);
                          ^
Vs2015\VC\INCLUDE\exception(373,65):  note: used here
        return exception_ptr::_Copy_exception(_STD addressof(_Except),
__GetExceptionInfo(_Except));
                                                                       ^
1 error generated.</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>