This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13157] Argument Dependent Lookup Failure
- From: "dave at boost-consulting dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Nov 2003 03:42:05 -0000
- Subject: [Bug c++/13157] Argument Dependent Lookup Failure
- References: <20031122005419.13157.dave@boost-consulting.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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