Boost logo

Ublas :

From: Michael Stevens (mail_at_[hidden])
Date: 2005-09-15 13:02:29


Dear Thomas,

On Donnerstag 15 September 2005 14:53, Thomas Lemaire wrote:
> Dear list,
>
> hear again some compilation proglem using boost 1.33 and the last gcc in
> debian/sid
> gcc (GCC) 4.0.2 20050913 (prerelease) (Debian 4.0.1-7)
> This error did not appened with previous gcc4 debian/sid package...
>
> This trivial example does not compile:
>
> vector<double> a;
> vector<double> b;
> matrix<double> C;
> a = prod(C,b);

Looks like a show stoping bug in the 20050913 prerelease. The failing case can
be simplified to:

struct a_class {
    public:
        static const unsigned complexity = 0;
};
template <class T>
struct a_template_class {
    public:
        static const unsigned complexity = 0;
};

void gcc_402_problem()
{
              BOOST_STATIC_ASSERT (a_class::complexity == 0); // OK
              BOOST_STATIC_ASSERT (a_template_class<int>::complexity == 0); // FAILS!
}

This probably breaks a great deal of Boost!

GCC shows a bug fixed on and before 2005-9-12
        http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23691
which is very similar.

-- 
___________________________________
Michael Stevens Systems Engineering
34128 Kassel, Germany
Phone/Fax: +49 561 5218038
Navigation Systems, Estimation  and
                 Bayesian Filtering
    http://bayesclasses.sf.net
___________________________________