<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/90052>90052</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang rejects valid program involving evaluation of this in constexpr context
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ranaanoop
</td>
</tr>
</table>
<pre>
The following valid program is rejected by clang: [Demo](https://godbolt.org/z/YaKM81aT4)
```
struct X
{
const void *p_;
consteval X()
: p_{this}
{
}
};
static constexpr X x{};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUs2O4ywQfJr2pTUR5ieODxySL_Ll097mkD2NsCE2K2wswN7MPv2KxDOTHckyDV1U01WtYrT9ZIwEcQJxLtSSBh9kUJNSk_dz0Xr9Ll8Hg1fvnP9tpx5X5azGOfg-qBFtxGB-mS4Zje07dk5NPbAjgjidzehBnIEehpTmCOwItAHa9F633qWdDz3Q5g_Q5qf6_8ehVK8caA3kDOS4_fdk--7bmMLSJbxsyer0CLDzU0y4eqsR6HF-A3Z6ZsEHwKzK4QXo4bMIImJ-6_wG1SkNNkJ1_sh8sX8e5uBf5phUst1Gf5sDXvCWLz4DP1ootGS6ZrUqjCyrkhNR1lwUg-xYza61IOSguKjKtt5rVrWatFej6_JACispoZxwKkrGKBW7ci-0KOtWdLziV8aBEzMq63bOrWOWtbAxLkbWhAhaONUaF-8OU_rwh9JsdpAZ_9IufQROnI0pfjEkm5yR_2X4ZnD87vy0erfmicjKLipZP6G_YhYS7fSkSuenZG6pWIKT30bBpmFpd50fgTa59ra8zMHnmkCbeysRaHPv5m8AAAD__6tIzt8">