In LLVM/Clang Debug build, following code will trigger the assert to fire:
typedef bool Var; bool foobool() { return (bool().Var::~Var(), false); }
I think the non record type temporary object should also be allowed here.
Thanks in advance
Zhouyi Zhou
zhouzhouyi@gmail.com