From 82c4a755af9543143526a9385fda8a5b487545d4 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 29 Jun 2010 18:17:17 +0200 Subject: [PATCH] disable empty struct trick for buggy gcc 4.3 --- Eigen/src/Core/util/XprHelper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/util/XprHelper.h b/Eigen/src/Core/util/XprHelper.h index 393e6696c..7e6cb3381 100644 --- a/Eigen/src/Core/util/XprHelper.h +++ b/Eigen/src/Core/util/XprHelper.h @@ -27,10 +27,10 @@ #define EIGEN_XPRHELPER_H // just a workaround because GCC seems to not really like empty structs -#ifdef __GNUG__ +#if (defined __GNUG__) && !((__GNUC__==4) && (__GNUC_MINOR__==3)) #define EIGEN_EMPTY_STRUCT_CTOR(X) \ EIGEN_STRONG_INLINE X() {} \ - EIGEN_STRONG_INLINE X(const X&) {} + EIGEN_STRONG_INLINE X(const X& ) {} #else #define EIGEN_EMPTY_STRUCT_CTOR(X) #endif