This is the mail archive of the gcc-patches@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]

Re: [C++ PATCH] Handle ptmf default conversions while matching a template argument (fix PR/10126)


On Wednesday, November 19, 2003 11:26 PM [GMT+1=CET],
Giovanni Bajo <giovannibajo@libero.it> wrote:

> 2003-11-19  Giovanni Bajo  <giovannibajo@libero.it>
> 
>         PR c++/10126
>         * g++.dg/lookup/ptrmem8.c: New test.

// { dg-do compile }
// Origin: <marco dot franzen at bigfoot dot com> 
// PR c++/1026: Handle ptmf default conversions while matching a template 
//  argument

struct B 
{
  int I () const;
  int I ();
};

struct D : B {};

template <int (D::*fun)() const> int Get();

int main () 
{
  Get<&B::I>();   // { dg-error "" }
}


Giovanni Bajo



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