This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/26605] using + function templates troubles



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]