This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Handle ptmf default conversions while matching a template argument (fix PR/10126)
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Giovanni Bajo" <giovannibajo at libero dot it>,<gcc-patches at gcc dot gnu dot org>
- Cc: "Bernardo Innocenti" <bernie at develer dot com>
- Date: Wed, 19 Nov 2003 23:31:47 +0100
- Subject: 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