blob: a4194109ef7f1c00d1ddd07cde4d9d05c13368e6 [file] [log] [blame]
// PR c++/59818
template <class T>
struct Identity {
typedef T type;
};
struct Foo {
template <typename T>
Foo(T*, void (Identity<T>::type::*m)(void));
};
struct Bar {
void Method(void) const;
};
void Bar::Method(void) const
{
Foo foo(this, &Bar::Method); // { dg-error "no match" }
}