Narrow scope of ICC compiler work-around
authorRoland Schulz <roland.schulz@intel.com>
Tue, 2 Oct 2018 02:15:23 +0000 (19:15 -0700)
committerRoland Schulz <roland.schulz@intel.com>
Tue, 2 Oct 2018 02:17:50 +0000 (19:17 -0700)
Only Update 0 is affected. Neither 2017 or 2019 is.

Change-Id: Id29125e4f77709cf60e73c7708a3b80ba50b93be

src/gromacs/compat/pointers.h

index 53955d26d832726c07cf97752c79c96960944d9f..403918ce34aba114bb97a23bb45a731ecab11c79 100644 (file)
@@ -61,7 +61,7 @@ namespace compat
 
 //! Contract-assurance macros that work like a simple version of the GSL ones
 //! \{
-#ifndef __INTEL_COMPILER
+#if !defined(__INTEL_COMPILER) || !(__INTEL_COMPILER == 1800 && __INTEL_COMPILER_UPDATE == 0)
 #define Expects(cond) GMX_ASSERT((cond), "Precondition violation")
 #define Ensures(cond) GMX_ASSERT((cond), "Postcondition violation")
 #else