New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-1939] Swift 3 crashes conforming class to protocol with generic type constraints #44548
Comments
The usual way to write this type is just
but we still shouldn't crash. |
This compiles fine on current master. Seems to have been fixed |
I can still reproduce this. |
@CodaFi (JIRA User): OK, that's interesting. I just double checked and both the first and the second example build just fine for me on master commit cf93e65 on macOS. Which commit on which platform are you using? |
I've just rebased onto 061b681 and can still see both crashes. You must run these tests with the interpreter. |
Oh, sorry my bad, I just ran |
Maybe just a dup of: |
For future reference, -parse stops after type-checking. |
Comment by BAN Jun (JIRA) I've just confirmed 3.0.0 with Xcode 8.0 still reproduce the issue, and, Swift 3.0.1 Preview 1 (downloaded from swift.org) does not reproduce this issue. It's fixed. |
Environment
Xcode 8 beta 1
Additional Detail from JIRA
md5: bf2ba52b099580173be1106d51322ac7
relates to:
Issue Description:
This example case cause crash of Swift 3 compiler.
and locally built toolchain (on commit of #3093 ) prints error message before backtrace below:
For reproducing the issue, it is not required that `C1` and `U` have same protocol comformance to `P1`.
i.e. using another protocol `P2` reproduce the same error message and crash.
This issue might be related to SR-1426, but I'm not sure this duplicates.
This issue does not reproduce with swift of Xcode 7.3.1.
The text was updated successfully, but these errors were encountered: