<div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to build GSL <a href="https://github.com/Microsoft/GSL">https://github.com/Microsoft/GSL</a> using clang 3.9/4.0 and on both versions I get the error below. It compiles fine on GCC.</div><div>Someone on StackOverflow says that GCC's behavior is the correct one. <a href="http://stackoverflow.com/questions/29483120/program-with-noexcept-constructor-accepted-by-gcc-rejected-by-clang">http://stackoverflow.com/questions/29483120/program-with-noexcept-constructor-accepted-by-gcc-rejected-by-clang</a></div><div><br></div><div>Is this a bug? Or am I missing something?</div><div><br></div><div>In file included from /mnt/c/Users/Mac/GitHub/GSL/tests/span_tests.cpp:25:</div><div>In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.1/../../../../include/c++/5.4.1/regex:61:</div><div>/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.1/../../../../include/c++/5.4.1/bits/regex.h:1574:7: error: exception specification of</div><div>      explicitly defaulted move constructor does not match the calculated one</div><div>      match_results(match_results&& __rhs) noexcept = default;</div><div>      ^</div><div>/mnt/c/Users/Mac/GitHub/GSL/tests/span_tests.cpp:1530:46: note: in instantiation of template class</div><div>      'std::__cxx11::match_results<gsl::details::span_iterator<gsl::span<char, -1>, false>,</div><div>      std::allocator<std::__cxx11::sub_match<gsl::details::span_iterator<gsl::span<char, -1>, false> > > >' requested here</div><div>    std::match_results<span<char>::iterator> match;</div><div>                                             ^</div><div><br></div><div>Mac</div></div>