This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13157] [3.3/3.4 Regression] Argument Dependent Lookup Failure
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2004 12:00:15 -0000
- Subject: [Bug c++/13157] [3.3/3.4 Regression] Argument Dependent Lookup Failure
- References: <20031122005419.13157.dave@boost-consulting.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-03 12:00 -------
Here is an example without using the namespace std (as that is a special namespace for 2.95.3):
namespace aa
{
double abs(double);
long double abs(long double);
}
namespace fu
{
template <class T>
struct X
{};
template <class T>
X<T> test(X<T> x)
{
using ::aa::abs;
return abs(x);
}
template <class T>
X<T> abs(X<T>);
X<int> x;
X<int> z = test(x);
}
>From Phil's regression hunter: Search converges between 2001-02-25-trunk (#8) and 2001-03
-04-trunk (#9).
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Summary|Argument Dependent Lookup |[3.3/3.4 Regression]
|Failure |Argument Dependent Lookup
| |Failure
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13157