struct A{}; void f(const A& a); int main() { f(new A()); /* OK, binding a temporary A to a const reference*/ }