c++/509

Wolfgang Bangerth bangerth@math.ethz.ch
Thu Jul 4 07:50:00 GMT 2002


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/




More information about the Gcc-bugs mailing list