This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3979: An update to problem #3971
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, kennedy at roguewave dot com, nobody at gcc dot gnu dot org
- Subject: Re: c++/3979: An update to problem #3971
- From: lerdsuwa at gcc dot gnu dot org
- Date: 10 Aug 2001 14:20:00 -0000
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