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

    <tr>
        <th>Summary</th>
        <td>
            Clang++ allows non-deallocated new expression in integral constant expression
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          IllogicalMagic
      </td>
    </tr>
</table>

<pre>
    The following examples are successfully compiled with `-std=c++20`:

```c++
struct S {
    int : *new int{0};
};

enum E {
    V = *new int{1},
};
```

Reproducible starting from 10.0.0 (https://godbolt.org/z/sKzPcexfG -- 10.0.0, https://godbolt.org/z/94EMsq9fc -- trunk).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEUk2PnDwM_jXmYg0KhmXgwGFnZ3n1qlqpaqveQzBM2pDQJHQ_fn2V2Vl1p6pUyXLij-eJ7ViGoGfL3MHNAW6Omdziyfnuf2PcrJU0D3LWKhvc-Nx9OTFOzhj3qO2M_CSX1XBA6RnDphSHMG3GPKNyy6oNj_io4wmhFrsQRyiPCugAdCABtYDyFsQRxJuuxatccl69IfpNRfyMsL94EBG1jQjlLQLdWn5MJuwPAvZHKC9ZV_ezZrsteH_N8xWhPF6zFAlJd39heavvPeknXr0bN6UHwxii9DHNZfJuwULkIhcI1JxiXEPqlnqgfnbj4EzMnZ-B-hegPnx4-aj4afoPd7sLDOgO_wVrq_uH8KOdVIJFv9nvQG2ejV05tmUrM-6Ket-IthF1m5060TZEFTdT1ciqrYemHqiu9lSW7ahaqjPdkaBSlKIuBBWizYemkKPicqrlMIpJQSV4kdrkxvxcUiGZDmHjri6oKDIjBzbhvENE53mmIBCllfJdwuyGbQ5QCaNDDL9Zoo6Guzsj7fz69SjThgW0zu5GToaSkUdMrPy0eg5BO4s6SeTZS4PK2RClje_i2eZN98cQdTxtQ67cAtSn9y_HbvXuG6sI1J-rDkD9uatfAQAA___N-e3g">