<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 27, 2017 at 1:10 AM, Mikhail Strelnikov via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
I'm trying to compile following example:<br>
<br>
#define BOOST_TEST_MODULE TestName<br>
#include <boost/test/included/unit_<wbr>test.hpp><br>
<br>
void fun()<br>
{<br>
throw std::exception();<br>
}<br>
<br>
BOOST_AUTO_TEST_CASE(test_<wbr>name)<br>
{<br>
BOOST_CHECK_THROW(fun(), std::exception);<br>
}<br>
<br>
It checks that given function does throw an exception of given type.<br>
<br>
On Windows the invocation:<br>
<br>
"C:\Program Files\LLVM\bin\clang-cl.exe" "test.cpp" /O2 /Ob2 /GR<br>
/Zc:forScope /Zc:wchar_t /MT /wd4675 /EHs -fsanitize=address<br>
-fsanitize=undefined -D_HAS_AUTO_PTR_ETC=1 -DNDEBUG "-Iboost_1_63_0"<br>
-Xclang -ftime-report<br>
<br>
takes about 85 seconds to complete on my machine (normally it should<br>
be 3 at most).<br>
<br>
And the resulting executable outputs this:<br>
<br>
boost/test/utils/class_<wbr>properties.hpp:60:55: runtime error: load of<br>
value 193, which is not a valid value for type 'bool'<br>
SUMMARY: AddressSanitizer: undefined-behavior<br>
boost/test/utils/class_<wbr>properties.hpp:60:55 in<br>
<br>
This also can't be right because it is Boost.Test, it can't have any<br>
bugs. Right?<br></blockquote><div><br></div><div>Boost may actually have some bugs :) </div><div><a href="https://svn.boost.org/trac/boost/ticket/12818">https://svn.boost.org/trac/boost/ticket/12818</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks.<br>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>