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

    <tr>
        <th>Summary</th>
        <td>
            Parser crash on Clang 20.1.3 for BPF code.
        </td>
    </tr>

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

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

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

<pre>
    STEPS TO REPLICATE:

```
git clone -b clangcrash https://github.com/etsal/scx.git scx;
cd scx/scheds/rust/scx_p2dq;
cargo build;
```

DESCRIPTION
--------------------

Over at the [sched_ext](https://github.com/sched-ext/scx/) project we have recently started encountering compiler crashes, seemingly in the [parser] (https://github.com/user-attachments/files/20301509/clangcrash.txt). These crashes do not have an obvious cause, but seem to be triggered by code that uses BPF arenas.

[topology-c68477.c.txt](https://github.com/user-attachments/files/20301559/topology-c68477.c.txt)
[topology-c68477.sh.txt](https://github.com/user-attachments/files/20301560/topology-c68477.sh.txt)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykk09vszgQxj-NuYyCjIEQDhzyD6nSahu9zb0yZgJeOThrD9nm26_spNs9RO3hjSwFwTMzv3nGI73Xw4TYsHLDyl0iZxqta5C8NEln-1vzdtwf3uD4Cr_2hz9etuvjnuVrxuNZ8sfh60ETKGMnhEUHyshpUE76EUaiiw8RomWiHTSNc5cqe2aijUWYaL36SEO4Vx8s3zC-Vn18Dl9G7D0TrZs93ZXvF9H__ZBJN1joZm36-4v_8zC-3u3ftr9eDseX1z8ZXy-e_O661ys6kAQ0IrByE4u-4wexcsfE6psGonIRlBEtKmq4OPsXKoJ_EEZ5RXCocCJzA0_SEfaAk7LzROj0NICy54s26CDahZ6JLXjEs54GcwM9fVJdpPPoWLmD75lmj24hiaQazzhRMO-kTcjbCp7zrOQ1E-3XgFIK-HUKxxE9flJAb2GydG9ATmC7q7azByVnjwGxmyliAlnoEMjpYUCHPXQ3ULZHoFESzB49bA4tSIeT9Onj2pQbshdr7HBbqOWqqKpURYyf_P6xtzL09jy3qJ9Xfjjw26WX_Enp_-xN-ibv67yWCTZZVVTLailElozNKivwlJe8rLArcuyWdVH0eSerApeiXIlEN4KLkpdZnVV5xbNUnIpM9f1JZFzmq1yyguNZapMacz2n1g2J9n7GJit4uSoSIzs0Pq63EHHsTIiw6a4JAYtuHjwruNGe_FcK0mSwOcQ7d78TYCfYhnAQPM3SHE7WxdGGaafJ7EzzjX0h8eNv8dgPJtoIGix8sF4b8W8AAAD__4Ykb0A">