<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/136840>136840</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
OOM for clang++-19 and clang++-20
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
FedericoSerafini
</td>
</tr>
</table>
<pre>
During the compilation of the following program,
both compilers allocate memory until it runs out:
```
extern struct c x;
struct c {
c &a = (*new c, x);
c() {}
} x;
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxUkc-K4zwQxJ-mfWkS5JYc2wcdkgm-fczhewJZ7thaZCvoz0zm7Rdnwu4sNEj8qCo1KpOSmzdmDc0FmmtlSl5C1ANPHJ0N_3M0N7e5agzTl76W6LYZ88Jow3p33mQXNgy3J7oF78PnLrjHMEezAr2BOI8hLy85x4TG-2BNZlx5DfELy5adR5cxli1hKBnkGcRzTuI14syPzHHDlGOxGS0-QF6-VX8QtDvB_UYngyCvCNQBnTf-RAv0hg-g_tuHO-iA-qerve5R7fVH6s-3q0nLqZe9qVjXrWqUkLVoqkWTndqpE6qubdvIk5q6flJMDTet7Mb2VjlNghqhSNairlVzVGLqeqk6YUep5KkBJXg1zh-9_1iPIc6VS6mwruWpU6LyZmSfntUQWW-2GYj2lqLeDYexzAmU8C7l9Dciu-xZv7__h7cQ8WW7AF0OdY9mm_5BJKoSvV5yvqf952kAGmaXlzIebViBhj33dRzuMfxim4GG554JaHit-qHpdwAAAP__T5av-w">