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++/13157] Argument Dependent Lookup Failure


------- Additional Comments From dave at boost-consulting dot com  2003-11-22 03:42 -------
Wrong again.  Unqualified calls are subject to argument dependent lookup 
regardless of what names are brought in via using declarations.  The reduced 
case is:

#include <cmath>

namespace fu
{
   template <class T>
   struct X
   {};

  template <class T>
  X<T> test(X<T> x)
  {
       using ::std::abs;
       return abs(x);
  }
  
   template <class T>
   X<T> abs(X<T>);

   X<int> x;
   X<int> z = test(x);
}


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13157


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