gcc-3.0 error #19990331 on possibly wrong template code

Alexander Voss voss@igpm.rwth-aachen.de
Wed Jul 4 06:49:00 GMT 2001


Markus,

I don't know if this is a real bug because there is no need to
specify the second template argument because of knowing the real 
argument, so the following works fine, even in 2.95.2

template<class C>
template<class D>
Test<C>::Test(D& d) : c_(static_cast<C>(d)) {}

instead of
template<class C>
template<class D>
Test<C>::template Test<D>(D& d) : c_(static_cast<C>(d)) {}


Alex

 
________________________________________________________________________

Alexander Voss,  Institut fuer Geometrie und Praktische Mathematik
RWTH Aachen, Templergraben 55, 52056 Aachen, Germany
mailto://voss@igpm.rwth-aachen.de  http://www.igpm.rwth-aachen.de/~voss
Phone: +49 / 241 / 80 63 39     Fax: +49 / 241 / 88 88 317
________________________________________________________________________



More information about the Gcc-bugs mailing list