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++/30281] [reject valid?] type deduction fails.



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-01-07 00:54 -------
Reduced testcase:

struct a
{
  int g(void);
};

struct b : a { };

template < typename T >
struct wrapper
{
        template < typename R >
        void add_method( R ( T::* )() const );
};
void test()
{
        wrapper< b >().add_method( &b::g );
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30281


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