Boost logo

Boost :

From: Gilles J. Seguin (segg_at_[hidden])
Date: 2002-03-04 15:33:25


Craig Rodrigues wrote:
>
> Hi,
>
> This test fails with GCC 3.0 but passes with GCC 3.1.

$ rpm -q gcc
gcc-3.1-0.21

    g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline \
 -I"../../../libs/type_traits/tests" -I"." -I"/usr/h1/boost/boost" \
 -o
"../../../libs/type_traits/tests/bin/cv_traits_test/gcc/debug/runtime-link-dynamic/cv_traits_test.o"
"cv_traits_test.cpp"

/usr/h1/boost/boost/boost/type_traits/cv_traits.hpp: In instantiation of
 `boost::is_const<int& const>':
cv_traits_test.cpp:40: instantiated from here
/usr/h1/boost/boost/boost/type_traits/cv_traits.hpp:129: forming pointer to
   reference type `int& const'
cv_traits_test.cpp: In function `int cpp_main(int, char**)':
cv_traits_test.cpp:40: non-constant `(boost::is_const<int& const>::value ==
   false)' cannot be used as template argument
...failed gcc-C++-action
../../../libs/type_traits/tests/bin/cv_traits_test/gcc/debug/runtime-link-dynamic/cv_traits_test.o
...


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