You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-ci opened this issue
Dec 5, 2015
· 3 comments
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
I decided to take a look at this bug so I could start getting familiar with the codebase.
I was able to reproduce the bug both on the command line and Xcode. Digging into it, it looks like this issue is caused by the code trying to increment an exhausted iterator - if I understand correctly in the case where B doesn't have any properties (so there is an iterator that starts out exhausted).
I have verified that handling the case of an exhausted iterator so the code doesn't try to increment it allows your code to compile.
I will look to add a unit test for this use case to verify that it now works as expected and then submit a pull request.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Attachment: Download
Environment
Ubuntu 14.04.3 LTS x86_64, Ubuntu 14.04 Swift 2.2 Snapshot
Additional Detail from JIRA
md5: 4ce09acd58663f0925c8dc1bdf749fe1
Issue Description:
Following piece of code effectively crushes swiftc
Logs attached
The text was updated successfully, but these errors were encountered: