<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/140363>140363</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang] Assertion `E->isGLValue() || E->getType()->isFunctionType() || E->getType()->isVoidType() || isa<ObjCSelectorExpr>(E->IgnoreParens())' failed.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          k-arrows
      </td>
    </tr>
</table>

<pre>
    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;
}
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMU09vnD4Q_TTDxdqVsfm3Bw5kd_kp0k9q1ERp2svKwMA69WJkm2yTT18ZSLJJD61kiWFm3rzH8CyslV2PmEN8BfEuEKM7apP_XAlj9NkGlW6e8684GN2MNRrgBdDi6NxgfchKYGWnm0ort9amA1a-ACujb0ZnzbGtgBaQ0PnUwwC0cM8DNtiSw-H2-sf-cPf9Zn84ECtf8OCAX3kALXpxQjuIGol1DYHUp60zY-1Ir93R6PPBTel0N2Nq3dvL2hIR4LsPfZDuyCyafOCYaReKh3ChJOQhBJYB28xoQp60bAiwQg9ohNOG9HgGli3y2XaaxQvgxZsWYBsyhZeT3gXRwtOxotV6brjg9vlh-oYez8TzfJru2x_CV3ENKnRIhtd3g240_b9gvZyLPxU0OW82fCMCzMM0SqNkk_A4OOachmFdpVUcZnEct22UUZFs4hazKhFVRAOZM8piGocpzUIeR2tMKTY1srpK0iRpGUQUT0KqtVJPJ--YQFo7Yh5GlCc8UKJCZScvMlYr0XfAmLelyT1gVY2dhYgqaZ19H-GkU5OBZ0S8I4W1aJzUPYGE7lfA99L-9_-9UCO-bXkL6ZZMtQ7d3fOwVObmcuxrj3_P_w1xr2XzZ7e0Avj2S_W4vUWFtdNm_2swwPfAsmnSdddrgzfCYG8Xh_iTklZIhc06GI3KP9036Y5jta71CVjpl7A8VoPRj1g7YOW0VAusXPb6lLPfAQAA__8BJyeX">