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

    <tr>
        <th>Summary</th>
        <td>
            Clang ICE SIGSEV in invalid code only in trunk
        </td>
    </tr>

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

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

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

<pre>
    I have checked in my local clang, that was downloaded from main branch a few weeks ago and there it does not SIGSEV, so it must be a recent modification that have arised this issue.

## Stack dump

Since in my local clang-21 it does not SIGSEV i have not been able to get it, but as it happened in other cases it must be a recursion check.

## Program

```
#include <stdlib.h>
#include <stddef.h>
int main()
{
        struct A {
 struct A(){};

        };
        struct A a;

}
```

## To quickly reproduce

https://godbolt.org/z/TE95s44Wr
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsU02P2jAQ_TXOZbQosZMNOeQALFR7q8SqPftjSFwcm_oDRH99ZchSdXcjS5HfvJl5b-ThIejBIvakWZPmpeApjs73E_caI1aUskI4de1fYeRnBDmiPKICbWG6gnGSG5CG24HQDcSRR7jwAMpdrHFcoYKDdxNMXFsQnls5AocDXuCCeAzABwfcKogjegQdQTkMYF2E_eu3_fZHLhpcDkwpRBAIHDxKtBEmp_RBSx61s_fGN33c64C5oA6gQ0i4IOUqH8oIZbCPXB5Bpel0h_faSvxs5olWX6gBfe-REYFogQuDEB0MGEHHLFakCDzk3JGfTmjvk3LZH0geMHzyknzIDm5z_V_rd-8Gz6cZey7nc4trK01SCIRtQlRGi8VI2ParmMLDe0znsXFtCV0S2mVyuyblCuYvRJ9khBXM8Pt9prdr0r4Qtr7reU96YJ-q8Ac3cz44eJh8c_A7aXk0V_B48k4liXfCGOMpELYidEfobnBKOBMXzg-E7v4Qunvbdk2o65--UD1THet4gX3V1u2SlW1TF2OPzXPbCGwPTSW6atlRIVUjRNm2B2yXXVvonpa0KRtaVZRRVi9k9awYY604sK4TjJK6xIlrszDmPOXexe1N9VVdLpdtYbhAE26bQ-m8BTQvke9zwpNIQyB1aXSI4V-JqKPBfpPp8LrZPh6XBW3P3GgF0ikEZ801g9EneyySN_2Hieg4JrGQbiJ0l4vPv6eTd79QRkJ3N7GB0N2s99zTvwEAAP__Mpk3cg">