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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] crash in bugprone-implicit-widening-of-multiplication-result
        </td>
    </tr>

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

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

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

<pre>
    Crash Backtrace:

```
Stack dump:
0.      Program arguments: C:\\msys64\\ucrt64\\bin\\clang-tidy.exe -p ./compile_commands.json C:/msys64/ucrt64/include/boost/multi_index/detail/seq_index_ops.hpp --checks=bugprone-implicit-widening-of-multiplication-result
1.      <eof> parser at end of file
2.      ASTMatcher: Processing 'bugprone-implicit-widening-of-multiplication-result' against:
 ArraySubscriptExpr : <C:/msys64/ucrt64/include/boost/multi_index/detail/seq_index_ops.hpp:170:9, col:21>
--- Bound Nodes Begin ---
    x - { ArraySubscriptExpr : <C:/msys64/ucrt64/include/boost/multi_index/detail/seq_index_ops.hpp:170:9, col:21> }
--- Bound Nodes End ---
Exception Code: 0xC0000005
#0 0x00007ff6e784775c (C:\msys64\ucrt64\bin\clang-tidy.exe+0xa9775c)
#1 0x000001a3550537e0
Segmentation fault
```

## Reproduction

My environment is UCRT64 (Mingw64) on Windows.
The clang-tidy version is:
```
$ clang-tidy --version
LLVM (http://llvm.org/):
  LLVM version 17.0.6
  Optimized build.
```

Boost is https://packages.msys2.org/package/mingw-w64-ucrt-x86_64-boost version 1.84.0-1

The `compile_commands.json` file was created by running 

```
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja
```

On [Inkscape](https://gitlab.com/inkscape/inkscape) with commit hash d37f6d36bea6f2b23dd88cba00a87ed9343fc745
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/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