Template bug?
mitchell@codesourcery.com
mitchell@codesourcery.com
Wed May 19 10:44:00 GMT 1999
>>>>> "Manuel" == Manuel Menezes de Sequeira <mms@torga.iscte.pt> writes:
Manuel> template <class R, class T>
Manuel> R f(T i) {
Manuel> template <class R, class T>
Manuel> R f(T* i) {
The question is which of these is more specialized. The answer is
neither; trying to deduce the arguments of either from the other does
not bind `R', since deduction does not look at the return-type. So, I
believe EGCS to be correct.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc-bugs
mailing list