THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#140 - Support Clang compiler
User who did this - Bernd Flemisch (bernd)

----------
I cannot reproduce the \"make check\" error. 

Concerning the other error, I encounter something at least similar. The problem 
comes from dumux/common/valgrind.hh, where the static_assert macro is defined 
to be empty, 
#define static_assert(a, b)
for gcc version < 4.5. According to the output of 
clang -dM -E -x c /dev/null
my clang declares itself to be compatible with gcc 4.2.1, meaning that the 
static_assert is defined like above. Nevertheless, including a standard header 
takes the header from your latest installed STL. If the STL version is 4.7, an 
error is produced.

In particular, a program like this fails for clang++ based on STL 4.7 and 
g++-4.7, but compiles with gcc < 4.7: 
#define static_assert(a,b)
#include <tuple>
int main() { return 0; }

Maybe I only messed up my local gcc 4.7 installation. If someone can reproduce 
the behavior, we might want to change valgrind.hh by means of the attached 
patch (at least I will attach a patch as soon as flyspray lets me), which does 
not define static_assert if clang is used. This helps preventing the error in 
my case.

----------

More information can be found at the following URL:
http://www.dumux.org/flyspray/index.php?do=details&task_id=140#comment268

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.
_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to