This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40177] ADL with non-unqualified-id
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2009 22:11:24 -0000
- Subject: [Bug c++/40177] ADL with non-unqualified-id
- References: <bug-40177-16474@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jason at gcc dot gnu dot org 2009-11-05 22:11 -------
I agree: before we can do ADL we need to know that f is a template name, so we
need another declaration of f to be found by unqualified lookup, i.e. something
like
template <class T> void f(T,T);
It is correct to do ADL once we do that, though:
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#561
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-11-05 22:11:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40177