Value category of defaulted assignment operator - lvalue or rvalue? (clang vs gcc)

后端 未结 0 1208
一生所求
一生所求 2021-02-03 20:42

Consider the following code:

struct S 
{ 
    S& operator=(const S&) = default;
};

int main()
{
    &(S() = S());
}

GCC (trunk) comp

相关标签:
回答
  • 消灭零回复
提交回复
热议问题