]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Comment MSVC 2019 DEAL_II_HAVE_CXX14_CONSTEXPR_CAN_CALL_NONCONSTEXPR failure 9081/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 22 Nov 2019 21:45:56 +0000 (16:45 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 22 Nov 2019 21:45:56 +0000 (16:45 -0500)
cmake/checks/check_01_cxx_features.cmake

index 54d0bfa5b2a1a1737504c96e7fa956e3cdf8dbc6..a80d781c101e9e1ce65f2f8f1a61a7c38dda9a77 100644 (file)
@@ -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(
     "

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.