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

    <tr>
        <th>Summary</th>
        <td>
            Assertion `TL.getFullDataSize() == CurrTL.getFullDataSize()' failed.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            bug,
            clang,
            clang:frontend
      </td>
    </tr>

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

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

<pre>
    I'm running into crashes on the following assertion: 
```
clang::TypeSourceInfo* GetTypeSourceInfoForDeclarator({anonymous}::TypeProcessingState&, clang::QualType, clang::TypeSourceInfo*): Assertion `TL.getFullDataSize() == CurrTL.getFullDataSize()' failed.`
```

This was seen when using clang-19, but it repros on upstream main as well. This can be reproduced using an assertions enabled clang on [godbolt](https://godbolt.org/z/bacEnhzbY). The reproducer is a malformed program, but it was reduced from valid code in a large internal project. Using a noasserts compiler doesn't solve the issue either. Rather, it just crashes on something else downstream, so it could very well be a source code issue. However, whether it's an issue with the compiler or with the program, clang shouldn't be crashing, and should throw a valid error message in such situations. 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0VE-PqzYQ_zTmMloEJgQ4cMhumvZJPbTd7aHHAU_AT8aOPHai3U9fGdJu3qt6fFIkB8_w--cxyKwnS9SL-lnUxwxjmJ3vw0xXbTmQzwan3vsvQjYL-GitthNoGxyMHnkmBmchzARnZ4y7pSoykw_aWVEdQBQHsS_uv-IwGrSTqA6iOry9X-jVRT_SF3t2Qh7gZwrfbp6cP9Jo0GNwXshWNM9onX1fXGTRHD9xfvNuJGZtp9eAgYTcC_kCD2S_RzSp8bvt_2gQskuqD_9YALEv3n7NJwqnaMwRA77qD0pSZAeiOorqCC_R-__rEbKBM2pDKt8CeAxDFIe3WTPckIGJLNxmshCTjU3kU9klwUMMoAN4uni35h0vHDzhAgtqC8hwI2NyWMFGtDDQ1qziSOoOiPbzYBjI4mBIbTQJUtTPk1ODM0HURyHbOYQLp5DkScjTvZQ7Pwl5-hDyNOD4k50_hr-E7BLzA6MHzYCwoDk7v5CCi3eTx-XBSnLsaZN39m6BKxqtYHSKIDkCg35KfwN5iyYhfKUx5PDn5gWs28wwjG65aEMelCO2QjYB2JkrrUOpmSMB6TCTz-EPTGuSoQN8jRweZ5jdQmFO6GSYQLmb3UJO_ezSK6OLRsGV_PsaeIoZgdfxuUtPdDn84m503YhuMyVO0EHIhtMhbJJuOsyrwn_lO_-5-RDYdkA8J-rN3UCbbG2n1IBW3csQZu9ugPcwyXvnYSFmXKMEjuMMrEPEdQZyyFRfqa7qMKO-bOpq1-yqnczm_lzIXdfsqWz3XYtqGLAp23a_b5SssRv3me5lIeuikbUsSinLvC2prstdV-6qsanaQewKWlCb3JjrksYmW333ZV3s2zYzOJDh9Zsj5RAnIaWQL0LK7W5--1Qdzt7ZQFalQn3MfJ9Qn4Y4sdgVRnPgT56gg6H-R1zgLHrTf3cvdJjjkI9uEfKUJNyXp_vACnlafbOQp7v1ay__DgAA__8-3NBX">