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
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
SR-1683 "TYPE MISMATCH" abort trying to match return type to Self
Issue Description:
This code crashes Xcode 8.1 beta 1's Swift compiler (but it works fine in Xcode 8.0 GM).
For whatever reason, this only happens when run inside Xcode. If the 8.1b1 swift is run from the command line `xcrun swift main.swift`, it works fine. So this may be something about the extra module generation or whatever arguments passed by Xcode.
It crashes for me with a debug compiler on master, so I'm not sure why your command-line case is passing. Regardless, we should definitely take a look at a regression in Xcode 8.1!
This is crashing for me now on 8.0 final. I don't know if it is a side effect of installing 8.1b1 on this Mac or whether the regression was between 8.0 GM and 8.0 final (hopefully not or whether something else is going on. But at least, you're able to reproduce it too)
Argh... it looks like I had Xcode set up on this Mac to use a snapshot from 8-18. Clearing that and it now works in 8.1 b1. Sorry for the regression false alarm! (though it sounds like it's broken on master from Jordan's comment above).
... now to go file an Xcode feature request to make it more clear when building with a snapshot, since I've messed this up twice now.
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
Mac OS X 10.11.6
Xcode 8.1 beta 1
Additional Detail from JIRA
md5: 90653eb2a55d81c8403c17c44e1f16d2
is duplicated by:
Issue Description:
This code crashes Xcode 8.1 beta 1's Swift compiler (but it works fine in Xcode 8.0 GM).
For whatever reason, this only happens when run inside Xcode. If the 8.1b1 swift is run from the command line `xcrun swift main.swift`, it works fine. So this may be something about the extra module generation or whatever arguments passed by Xcode.
The text was updated successfully, but these errors were encountered: