This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26605] using + templates troubles
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2006 14:15:01 -0000
- Subject: [Bug c++/26605] using + templates troubles
- References: <bug-26605-133@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pcarlini at suse dot de 2006-03-08 14:15 -------
(In reply to comment #4)
> > I don't know how that and comment #1 are valid code as in both cases the
> > arguments will be the same so you should get an error about ambiguous
> > functions.
>
> Not so early, I think, because T is unknown.
And, by the way, this one already compiles:
template<typename T>
void
fun(T);
template<typename T>
void
fun(T);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26605