Why function overloading doesn't happen when I use friend functiontemplates in class templates?

Nathan Sidwell nathan@codesourcery.com
Mon May 24 07:45:00 GMT 2004


Yueh-Wei Hu wrote:

1) gcc-3.2: can _not_ compile, the error message posted above.
2) gcc-3.3: can _not_ compile, the error message just like the one
posted for gcc-3.2.
3) gcc-3.4: can compile, but the result is
T<a, b>

[but I think it should be T<a, 3>]
A cursurou look indicates you are correct, T<a,3> is more specialized
than T<a,b>.  Can you file a bug report please.
nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk




More information about the Gcc mailing list