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++/26110] using directive breaks ADL



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


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