From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Merrill To: kriol@fnal.gov (Oleg Krivosheev), egcs@cygnus.com Subject: Re: something wrong with template instantiation mechanics Date: Fri, 10 Oct 1997 11:44:00 -0000 Message-id: References: X-SW-Source: 1997-10/msg00415.html >>>>> Oleg Krivosheev writes: > after reading CD2 and thinking a bit i still > believe this is a bug: > 14.8.3 Overload resolution [temp.over] > .. > For each function template, if the argument > deduction succeeds, the deduced template-arguments are used to instan- > tiate a single function template specialization which is added to the > candidate functions set to be used in overload resolution. > .. > well, lloks like egcs deduces templates argument right, Yes. > then it properly did everload resolution and > choose template version of abs No. It chose the non-template abs declared by the line friend numT abs( const TVector3D& ); Jason