最佳答案
class A {};
int main() {
A() = A();
return 0;
}
Why does this code compile? Shouldn't be there some error that on the left side of assignment operator should be placed lvalue? Is A() lvalue? g++ 4.7 version