[SR-4957] Compiler crash in "computeNominalType" for nested type named "Iterator" in generic outer type #47534
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
regression
serialization
Area → compiler: Serialization & deserialization
swift 4.0
Attachment: Download
Environment
macOS 10.12.5
Xcode 8.3.2
Apple Swift version 4.0-dev (LLVM 99f1de85be, Clang 81c3e9a66e, Swift 4ebd716)
Additional Detail from JIRA
md5: c2f13aae5e9a0de26f9b4211b40e36d7
Issue Description:
I encountered this crash with the
swift-DEVELOPMENT-SNAPSHOT-2017-05-19-a
toolchain downloaded from swift.org. The issue was/is not present with theswift-DEVELOPMENT-SNAPSHOT-2017-05-10-a
toolchain.swiftc crashes in
computeNominalType
for the following reduced example:Generic.swift:
main.swift:
Compile command that leads to crash:
swiftc Sequence.swift main.swift
Changing almost anything else will make the crash disappear (including removing main.swift).
Potentially helpful: Renaming
Iterator
(to for example_Iterator
) will stop the crasher.Full stacktrace:
The text was updated successfully, but these errors were encountered: