class S { public: int a; }; void foo() {} int main() { (foo())->a; }