EvaluateTemporary: Assertion `E->isPRValue() && E->getType()->isRecordType()' failed. #53741
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
When compile following code, The Assertion in EvaluateTemporary will fail.
typedef bool Var;
bool foobool() {
return (bool().Var::~Var(), false);
}
command line:
clang++ -S -emit-llvm -Xclang -disable-llvm-passes crash.C
my fix of it:
https://reviews.llvm.org/D119493
The text was updated successfully, but these errors were encountered: