From 08a6da17318dfd53457df4a304c1f8a923773939 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 22 Nov 2019 16:45:56 -0500 Subject: [PATCH] Comment MSVC 2019 DEAL_II_HAVE_CXX14_CONSTEXPR_CAN_CALL_NONCONSTEXPR failure --- cmake/checks/check_01_cxx_features.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/checks/check_01_cxx_features.cmake b/cmake/checks/check_01_cxx_features.cmake index 54d0bfa5b2..a80d781c10 100644 --- a/cmake/checks/check_01_cxx_features.cmake +++ b/cmake/checks/check_01_cxx_features.cmake @@ -731,6 +731,10 @@ CHECK_CXX_SOURCE_COMPILES( # expression, C++14 allows to call non-constexpr functions from constexpr # functions. Unfortunately, not all compilers obey the standard in this regard. # +# In some cases, MSVC 2019 crashes with an internal compiler error when we +# declare the respective functions as 'constexpr' even though the test below +# passes, see #9080. +# IF(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC") CHECK_CXX_SOURCE_COMPILES( " -- 2.39.5