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

    <tr>
        <th>Summary</th>
        <td>
            `clang-format` crashes with combination of `AlignArrayOfStructures` and `ColumnLimit: 0`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    clang-format crashes with next file:
```cpp
Test::Test() noexcept
    : a{}
    , b{
          {A::V, {B::V, C::V}},
      }
{}
```
clang-format config:
```
---
Language:        Cpp
AlignArrayOfStructures: Left
ColumnLimit: 0
...
```
crash message:
```
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: "C:\\Program Files\\LLVM\\bin\\clang-format.exe" test.cpp
 #0 0x00007ff720b6e28f C:\Program Files\LLVM\bin\clang-format.exe 0xbe28f C:\Program Files\LLVM\bin\clang-format.exe 0xbcd39
 #1 0x00007ff720b6e28f C:\Program Files\LLVM\bin\clang-format.exe 0xb9ef7 C:\Program Files\LLVM\bin\clang-format.exe 0x86397
 #2 0x00007ff720b6e28f C:\Program Files\LLVM\bin\clang-format.exe 0xa2519 C:\Program Files\LLVM\bin\clang-format.exe 0x94664
 #3 0x00007ff720b6e28f C:\Program Files\LLVM\bin\clang-format.exe 0x7dd6e C:\Program Files\LLVM\bin\clang-format.exe 0x7ec69
 #4 0x00007ff720b6e28f C:\Program Files\LLVM\bin\clang-format.exe 0x545c C:\Program Files\LLVM\bin\clang-format.exe 0x36f6
 #5 0x00007ff720b6e28f C:\Program Files\LLVM\bin\clang-format.exe 0x1843e8 (C:\Program Files\LLVM\bin\clang-format.exe+0xbe28f)
 #6 0x00007ff720b6e28f
 #7 0x00007ff720b6e28f (C:\Program Files\LLVM\bin\clang-format.exe+0xbe28f)
0x00007FF720B6E28F (0x0000006E2A18B3E8 0x0000000000000000 0x0000006E00000000 0x0000006E2A18CB10)
0x00007FF720B6CD39 (0x0000000000000000 0x0000006E00000000 0x0000006E2A18B028 0x00007FFA04ACF05B)
0x00007FF720B69EF7 (0x0000016FBA1E25E0 0x0000000000000000 0x0000000000000000 0x0000001000000000)
0x00007FF720B36397 (0x0000006E2A18BD90 0x00007FF720B5292E 0x0000000000000000 0x0000000000000000)
0x00007FF720B52519 (0x0000000000000000 0x0000006E2A18CB00 0x0000006E2A18CF80 0x0000000000000008)
0x00007FF720B44664 (0x0000000000000100 0x0000000000000000 0x0000016FBA1EAEF0 0x0000000000000003)
0x00007FF720B2DD6E (0x0000016FBA1D4FC0 0x00007FFA070547B1 0x0000000000000000 0x0000016FBA1C0000)
0x00007FF720B2EC69 (0x0000016FBA1D04A4 0x0072006700000000 0x0000016FBA1D0470 0x0000000000340032)
0x00007FF720AB545C (0x0000016FBA1CC300 0x000000000000000E 0x0000000000000000 0x0000016FBA1C6850)
0x00007FF720AB36F6 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF720C343E8 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFA06BE7034 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFA07082651 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
```

clang-format version: 14.0.0

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1V1FvozgQ_jXkxSoyxhh4yAMQkFbK6lbX3r4bMAm3BCJjdtt_f0NMEtK47W4uRUSxxzPf93lszJB35cuyaHi7eag6ueMKFZL3W9GjX7XaolY8K1TVjbDcyMIrC0cWw_ou9ntteRK9Godd3SKBRULUduK5EHulXRBcMI645ceWv5oZSYLy0Xiy6AtMkcb8PrpAN551k2MboOAmyTz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