Oops there is missing declaration of the variable a. This is what you should be examining:
class A {};
int main() {
  A a;
  std::cout << &(A() = a) << "\n"; 
}
@vaporeon_ evidently I have burnt my brain today
@vaporeon_ it should be #include
@vaporeon_ it should be #include <iostream>