c++/5732: g++ not using return type for overload resolution
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Fri Feb 22 02:33:00 GMT 2002
Synopsis: g++ not using return type for overload resolution
State-Changed-From-To: closed->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Feb 22 02:30:06 2002
State-Changed-Why:
I think it is a bug. We can't tell until instantiation
time whether the two conflict or not, and as pointed out
T::value_type breaks the instantiation when T == int.
Incidentally, I'll bet you don't get the error if you had
something like
template <typename T1, typename T2>
void Foo (T1, T2);
template <typename T2, typename T1>
typename T1::value_type Foo (T2, T1);
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5732
More information about the Gcc-bugs
mailing list