c++/3979: An update to problem #3971
lerdsuwa@gcc.gnu.org
lerdsuwa@gcc.gnu.org
Fri Aug 10 07:20:00 GMT 2001
Synopsis: An update to problem #3971
State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Aug 10 07:20:00 2001
State-Changed-Why:
Not a bug. The only possible match (using template
argument deduction rule) is:
template< class T>
inline A<T> operator *(const A<T> &a, const A<T> &b);
and the conversion from B<T> to A<T> fails. The function
template< class T>
inline B<T> operator *(const B<T> &a, const B<T> &b);
is not considered (See section 14.8.2.1 para 3 in the
standard).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3979&database=gcc
More information about the Gcc-prs
mailing list