[SR-9398] Use-after-free caused by iterator invalidation in GSB::removeSelfDerived() #51864
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
multiple files
Flag: An issue whose reproduction requires multiple files
regression
swift 5.0
Environment
macOS 10.14.1, Xcode 10.1, development snapshot 2018-11-28.
Additional Detail from JIRA
md5: baff34e3ae04331377fed4a62040334b
is duplicated by:
Issue Description:
This is a regression that happened between toolchain 2018-11-26 and 2018-11-28.
The code compiles fine with 2018-11-26. It crashes the compiler with 2018-11-28.
The crash happens only when the source is split over two files.
In main.swift:
in a separate file:
Interestingly, changing the declaration order of the associated types so that Type3 is declared before Type2 fixes the crash.
This is the crash log:
The text was updated successfully, but these errors were encountered: