aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/eigen2/main.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/eigen2/main.h b/test/eigen2/main.h
index 11cba861e..9d0defa39 100644
--- a/test/eigen2/main.h
+++ b/test/eigen2/main.h
@@ -111,8 +111,10 @@ namespace Eigen
#else // EIGEN_DEBUG_ASSERTS
#undef eigen_assert
+
+ // see bug 89. The copy_bool here is working around a bug in gcc <= 4.3
#define eigen_assert(a) \
- if( (!(a)) && (!no_more_assert) ) \
+ if( (!Eigen::internal::copy_bool(a)) && (!no_more_assert) ) \
{ \
Eigen::no_more_assert = true; \
throw Eigen::eigen_assert_exception(); \