Boost logo

Boost :

Subject: [boost] regression in math
From: frederic.bron_at_[hidden]
Date: 2008-12-04 01:05:10


Very strange: nearly all regression tests failed on my linux platform with g++: http://www.boost.org/development/tests/trunk/developer/math.html (look at linux_x86_64, bronf)
The reason is the always the same but is strange to me:

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mfpmath=sse -mieee-fp -march=nocona -fPIC -Wno-missing-braces -DBOOST_ALL_NO_LIB=1 -DBOOST_REGEX_DYN_LINK=1
-DBOOST_UBLAS_UNSUPPORTED_COMPILER=0 -I".." -c -o "/soft/bal/usr/builds/boost_test/results/boost/bin.v2/libs/math/test/dist_bernoulli_incl_test.test/gcc-3.4.6/debug/dist_bernoulli_incl_test.o"
"../libs/math/test/compile_test/dist_bernoulli_incl_test.cpp"

In file included from ../boost/math/distributions/detail/common_error_handling.hpp:13,
                 from ../boost/math/distributions/bernoulli.hpp:33,
                 from ../libs/math/test/compile_test/dist_bernoulli_incl_test.cpp:9:
../boost/math/special_functions/fpclassify.hpp:170: error: expected unqualified-id before '&&' token

This line has been modified recently and seems not to work now with g++:

Index: boost/math/special_functions/fpclassify.hpp
===================================================================
--- boost/math/special_functions/fpclassify.hpp (revision 50010)
+++ boost/math/special_functions/fpclassify.hpp (working copy)
@@ -165,7 +165,9 @@
 {
    return BOOST_FPCLASSIFY_PREFIX fpclassify(t);
 }
-#if !defined(__CYGWIN__) && !defined(__HP_aCC) && !defined(BOOST_INTEL) && !defined(BOOST_NO_NATIVE_LONG_DOUBLE_FP_CLASSIFY)
+#if !defined(__CYGWIN__) && !defined(__HP_aCC) && !defined(BOOST_INTEL) \
+ && !defined(BOOST_NO_NATIVE_LONG_DOUBLE_FP_CLASSIFY) \
+ && !(defined(__GNUC__) && !defined(BOOST_MATH_USE_C99))
 // The native fpclassify broken for long doubles with aCC
 // use portable one instead....

F. Bron
___________________________________
Frédéric Bron (frederic.bron_at_[hidden])
Unité ALT, Alcan CRV, BP 27, 38341 Voreppe
+33 4 76 57 81 72, +33 6 07 48 56 67

Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.

Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk