This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/509
- From: Wolfgang Bangerth <bangerth at math dot ethz dot ch>
- To: gcc-bugs at gcc dot gnu dot org, <gcc-gnats at gcc dot gnu dot org>, <gcc-prs at gcc dot gnu dot org>
- Date: Thu, 4 Jul 2002 16:40:46 +0200 (CEST)
- Subject: Re: c++/509
Hi all,
c++/509 is one of my rather old bug reports. So I tried whether it has
been fixed without anyone noticing. It has not, but there's a second bug
in the compiler now which I'd like to get into the data base by this way.
With gcc3.1, the error message for the test case now reads:
x.cc:8: ambiguous template specialization `f<>' for `void Example<double>::f(double)'
x.cc:3: candidates are: void Example<T>::f(double) [with T = double]
x.cc:4: template<class U> void Example::f(U) [with U = U, T = double]
Note the "with U=U" in the second line, which should really read
"with U=double".
Whoever attempts to fix the original bug should also make sure that this
is fixed first.
Anyway, accept my thanks for making gcc such a good compiler! Best regards
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@math.ethz.ch
www: http://www.math.ethz.ch/~bangerth/