class base_class
{
public:
int x;
void function(base_class){}
} base_1;
class derived_class: public base_class
{
public:
int y;
} parameter;
int main ()
{
// Will this work?
parameter.function(parameter);
// Or this?
base_1.function(parameter);
}
Y2xhc3MgYmFzZV9jbGFzcwp7CiAgICAgcHVibGljOgogICAgICAgICAgaW50IHg7CiAgICAgICAgICB2b2lkIGZ1bmN0aW9uKGJhc2VfY2xhc3Mpe30KfSBiYXNlXzE7CgpjbGFzcyBkZXJpdmVkX2NsYXNzOiBwdWJsaWMgYmFzZV9jbGFzcwp7IAogICAgIHB1YmxpYzoKICAgICAgICAgIGludCB5Owp9IHBhcmFtZXRlcjsKCmludCBtYWluICgpCnsKICAgICAvLyBXaWxsIHRoaXMgd29yaz8KICAgICBwYXJhbWV0ZXIuZnVuY3Rpb24ocGFyYW1ldGVyKTsKICAgICAvLyBPciB0aGlzPwogICAgIGJhc2VfMS5mdW5jdGlvbihwYXJhbWV0ZXIpOwp9