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]
Other format: [Raw text]

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/



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