c++/509

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


The following reply was made to PR c++/509; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@math.ethz.ch>
To: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>
Cc:  
Subject: Re: c++/509
Date: Thu, 4 Jul 2002 16:40:46 +0200 (CEST)

 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-prs mailing list