This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30281] [reject valid?] type deduction fails.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2007 00:54:42 -0000
- Subject: [Bug c++/30281] [reject valid?] type deduction fails.
- References: <bug-30281-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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