Issue 140363
Summary [clang] Assertion `E->isGLValue() || E->getType()->isFunctionType() || E->getType()->isVoidType() || isa<ObjCSelectorExpr>(E->IgnoreParens())' failed.
Labels clang
Assignees
Reporter k-arrows
    Reproducer:
https://godbolt.org/z/4Wro8dhfb
```cpp
typedef __SIZE_TYPE__ size_t;

namespace std {
struct nothrow_t {};
const nothrow_t nothrow = {};
} // namespace std

struct X1 {
  X1();
  void *operator new(size_t, std::nothrow_t) throw();
};

X1 *foo() {
  X1 *p = new (std::nothrow) X1;
  delete p;
  return new (std::nothrow) X1;
}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to