[SR-11747] fatal error when compiling big tuples #54154
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Environment
Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9)
Target: x86_64-apple-darwin19.0.0
Additional Detail from JIRA
md5: 486418ad65bea1ece7b1fd6d75c935d1
Issue Description:
https://forums.swift.org/t/t-uple-max-size/30635
When I try to compile a tuple with `2**20 + 1` elements, it crashes the compiler with "Type variable id overflow"
To reproduce I use the following python3 program (number of elements is one bigger than the `size` variable):
The full(ish) error message:
The text was updated successfully, but these errors were encountered: