From f650385f6568ea4168ae7036bb514d287cd97b97 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 30 Mar 2017 18:50:57 +0100 Subject: [PATCH] Disable test case that causes msvc internal error. --- test/gcd_constexpr14_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/gcd_constexpr14_test.cpp b/test/gcd_constexpr14_test.cpp index 943af8c..6e4bf30 100644 --- a/test/gcd_constexpr14_test.cpp +++ b/test/gcd_constexpr14_test.cpp @@ -27,7 +27,10 @@ void test_constexpr() void test_noexcept() { static_assert(noexcept(boost::integer::gcd(static_cast(2), static_cast(4))), "Expected a noexcept function."); +#ifndef _MSC_VER + // This generates an internal compiler error if enabled as well as the following test: static_assert(noexcept(boost::integer::gcd(static_cast(2), static_cast(4))), "Expected a noexcept function."); +#endif static_assert(noexcept(boost::integer::gcd(static_cast(2), static_cast(4))), "Expected a noexcept function."); static_assert(noexcept(boost::integer::gcd(static_cast(2), static_cast(4))), "Expected a noexcept function."); static_assert(noexcept(boost::integer::gcd(static_cast(2), static_cast(4))), "Expected a noexcept function.");