This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc-3.0 error #19990331 on possibly wrong template code


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
________________________________________________________________________


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]