This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26110] using directive breaks ADL
- From: "dg001 at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Feb 2006 23:14:52 -0000
- Subject: [Bug c++/26110] using directive breaks ADL
- References: <bug-26110-12138@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from dg001 at t-online dot de 2006-02-05 23:14 -------
The first statement in my code doesn't use any namespace
double result1 = f(d);
So ADL should take the function with the signature (float d), which is in
global namespace.
There is of course a second statement in my code:
double result2 = test::f(d);
and yes, this works correctly.
So please have a closer look at the *first* statement, which doesn't compile to
correct code.
--
dg001 at t-online dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26110