New GitHub issue #93345 from serhiy-storchaka:<br>

<hr>

<pre>
During work on #93330 I have found an error in the C code which causes crash when substitute a TypeVar in nested generic alias after TypeVarTuple.

For example:
```
>>> from typing import *
>>> T = TypeVar('T')
>>> Ts = TypeVarTuple('Ts')
>>> tuple[*Ts, list[T]][int, str, bool]
Segmentation fault (core dumped)
```
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/93345">View on GitHub</a>
<p>Labels: 3.11, type-crash, expert-typing, 3.12</p>
<p>Assignee: </p>