This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-3.0 error #19990331 on possibly wrong template code
- Subject: Re: gcc-3.0 error #19990331 on possibly wrong template code
- From: Alexander Voss <voss at igpm dot rwth-aachen dot de>
- Date: Wed, 04 Jul 2001 15:00:42 +0200
- CC: gcc-bugs at gcc dot gnu dot org, markus at lufmech dot rwth-aachen dot de
- Organization: rwth-aachen
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
________________________________________________________________________