[Bug c++/30281] [reject valid?] type deduction fails.
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 7 00:56:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list