blob: b109b9300ff04934498902a1d811bb2f8b15b3f7 [file] [log] [blame]
// PR c++/66130
struct X {
X(void *);
void m(); // { dg-message "declared here" }
};
struct Y : public X{
Y(void*a, void *b) : X(m), mb(b) { } // { dg-error "member function 'void X::m\\(\\)'" }
void *mb;
};