<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61680>61680</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] 'VarTemplateSpecializationDecl::getSourceRange; changes after serialization of the AST
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tomasz-kaminski-sonarsource
</td>
</tr>
</table>
<pre>
For the following code snippet, the end token of the source range produced from `VarTemplateSpecializationDecl::getSourceRange::getSourceRange` changes from the right angle bracket of the template argument list (which is expected output of [D139705](https://reviews.llvm.org/D139705)) to name of variable:
```
template<class U>
// v - before serialization, expected
int binTempl<int, U>;
// ^ - after serialization
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU02PozgQ_TXFpZTI2HyEA4ek0_kB2717N6YC3hgb2SbZ7V8_wkmm1aPWHAYhAS786r16zzIEPViiFsoDlMdMLnF0vo1ukuFjc5GTtuGiN8FZ6YNbvKKsc_3_7cl5jCPh2RnjbtoOqFxPGKyeZ4rAX1KVbI_RXciiO6eFOwR6aQfC2bt-UdTj2bsJoWL_SP9O02xkpLeZlJZGf8ionT2SMiD2IPYDxbeE8dcK8e1axRDVuL6GO_La2OthjCjtYAg7L9WF4pNTfLRE6YdlIhvR6BAR-O42ajWiDkj_zaQi9eiWOC9pJ5SHYy6ampVQHoHvxhjnsPLhJ-AnT1dNt7A15jptnR-An55_8wZ4g9GhlROtSFfptexMEsOOwPZQscedPp_8QLwoI0PAv0G83kv42-tOBfGKG-zo7DxhIP851dWlp7I7nrYRO22TCSBetE1Opn7i8Gz5gIXyFTcoz5H8L7BfRWR9K_pGNDKjNq_qpqrqQuTZ2Dasr0rOaiqZLGR9Vqyuy4LkrlNFV5aU6ZYzLpjgRV7kdZ5vRZGLnEpR582uYIWEgtEktfk55kyHsFBb5dWOZUZ2ZEIKNueWbpiKwPmac9-uezbdMgQo2Gr4p1lZ1NGkE6GMtAOURwRe_0E4D59B_GZOz_zt396zxZv2a4IGHcel2yo3AT-tzB6Pzezdv6Qi8FPSE4Cfkt4fAQAA___7CDT_">