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] [3.3/3.4 Regression] Argument Dependent Lookup Failure


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


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