2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / ptrmem8.C
blobc0a1fa3a1caa668a13656ba585092ff3c9d55dc4
1 // { dg-do compile }
2 // Origin: <marco dot franzen at bigfoot dot com> 
3 // PR c++/10126: Handle ptmf default conversions while matching a template 
4 //  argument
6 struct B 
8   int I () const;
9   int I ();
12 struct D : B {};
14 template <int (D::*fun)() const> int Get();
16 int main () 
18   Get<&B::I>();   // { dg-error "no matching function" }
19   Get<&D::I>();   // { dg-error "no matching function" }