This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why function overloading doesn't happen when I use friend functiontemplates in class templates?
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: ywhu at iii dot org dot tw
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 24 May 2004 08:45:03 +0100
- Subject: Re: Why function overloading doesn't happen when I use friend functiontemplates in class templates?
- Organization: Codesourcery LLC
- References: <1085377934.3039.20.camel@WeiComputer>
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