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: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2006 22:28:35 -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 #10 from mmitchel at gcc dot gnu dot org 2006-03-08 22:28 -------
I think the code in Comment #1 is unambiguously invalid.
7.3.3/11 says says that a function declaration in namespace scope may not match
the declaration of a function introduced by a using declaration; i.e., the
following:
namespace N { void f(); };
using N::f;
void f();
is invalid. Making the functions templates does not change that. That
paragraph also makes clear that the code in Comment #9 is valid. I don't see
any DRs that suggest changes in this area.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26605