Issue 76625
Summary clang-cl out of memory error
Labels new issue
Assignees
Reporter codethinki
    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{};
 ...
};
```


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to