This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26605] using + function 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 16:20:24 -0000
- Subject: [Bug c++/26605] using + function templates troubles
- References: <bug-26605-133@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from pcarlini at suse dot de 2006-03-08 16:20 -------
The below also works already (can make for an useful if ugly workaround, in
some cases, e.g., c++/21682):
namespace one
{
template<typename T>
void
fun(T);
}
namespace two
{
template<typename T>
void
fun(T);
}
using one::fun;
using two::fun;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26605