|
Boost : |
From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2002-03-03 12:51:11
Hi,
This test fails with GCC 3.0 but passes with GCC 3.1.
Index: cv_traits_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/type_traits/tests/cv_traits_test.cpp,v
retrieving revision 1.7
diff -u -u -r1.7 cv_traits_test.cpp
--- cv_traits_test.cpp 5 Nov 2001 21:00:03 -0000 1.7
+++ cv_traits_test.cpp 3 Mar 2002 17:49:05 -0000
@@ -36,7 +36,7 @@
value_test(true, boost::is_const<const UDT>::value)
value_test(true, boost::is_const<const volatile UDT>::value)
value_test(false, boost::is_const<const int&>::value)
-#ifndef __GNUC__
+#if !defined(__GNUC__) || ( __GNUC__ > 3 ) || ( __GNUC__ ==3 && __GNUC_MINOR__ >=1)
value_test(false, boost::is_const<cr_type>::value)
#else
value_fail(false, boost::is_const<cr_type>::value)
@@ -63,7 +63,7 @@
unsigned int expected_failures = 3;
#elif defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x530)
unsigned int expected_failures = 1;
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) && ( (__GNUC__ < 3 ) || (__GNUC__ == 3 && __GNUC_MINOR__ < 1) )
unsigned int expected_failures = 1; // cr_type doesn't compile
#else
unsigned int expected_failures = 0;
-- Craig Rodrigues http://www.gis.net/~craigr rodrigc_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk