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

    <tr>
        <th>Summary</th>
        <td>
            clang-cl out of memory error
        </td>
    </tr>

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

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

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

<pre>
    if you create an array in a function body with a very large size (idk string::npos size) it will crash, saying that it encountered an out of memory error and i should report it. 
msvc says "total size of array must not exceed 0x7fffffff bytes"

``cpp
constexpr uint32_t MIN_WORDS = 1;
constexpr uint32_t MAX_WORDS = 3;
vector<string> solve(const string_view letter_boxed_sides) {
     constexpr uint32_t DICTIONARIES = MIN_WORDS - MAX_WORDS;
     array<vector<string>, DICTIONARIES> dictionaries{};
 array<array<uint32_t, 27>, DICTIONARIES> dictionaryEntries{};
 ...
};
```


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEk0GP6jYQgH-NcxkRBZsQcsiBB4vEoW-lbaX2hhxnkrhrbGRPgPTXVw6wIHWrZyGsxOPPX2Y8MgTdWcSK5T9Yvk3kQL3zlXINUq_tp05q14yVbmF0AyiPkhCkBem9HEFbkNAOVpF2FmIkXDT1IOGMfgQjfYcQ9D8IjK908wmBvLYdE2sm1vbkwrTIeAma4KKNAeVl6BnfQJCjth1QLykuolVusIQem3i8GwhcC0c8Oj8Ceu88SNuAhtC7wTTg8eR83JkCy7YsWx_DWUVoAMY5OZLmJuba-7cch0BgHQFeFWID2bVobwPqkTAwzm-k-_8yY8tMnU63R-VsILyePAzakuAHgt_2Pw9_vn9sfwcmtjBn4sf_h67_egkVX6FnVOQ8E5tH3t4gOHNGxlcT5Z7Pw1njBQwSoT_U7orNIegmKpfAijsL4vjm7O1-88f-_ef6Y_92O_7pPXuKfSlNmCljTGz-6xdL90qMyo2e7of0GkPUKbZP2oP0mB9akcOLXwHHN0vfUdM0vVfp5e2tYvH3UsakqURTilImWM2LTJTLebkokr4qW5k1hcBS1RnP8jxflFJhXrb1IufFapXoimdczLnI5qtFvihSoep23hb5ql6WWVmXbJHhUWqTGnM-ps53iQ5hwKpYLnmeGFmjCVPbcW7xAtNivGT5NvFV3DOrhy6wRWZ0oPCkkCaDlTLSdjNlvmuFZPCm6olOIXYa3zG-6zT1Q50qd2R8F1H3aXby7m9UxPhuEgiM7ybBfwMAAP__jUxJkg">