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-7951] Making A Type Private Crashes the Compiler #50486
Comments
@swift-ci create |
This looks like a duplicate of https://bugs.swift.org/browse/SR-7923 |
Zach, can you try a more recent 4.2 snapshot from swift.org and confirm that it is fixed now? |
Comment by Zach Wolfe (JIRA) Thanks Bob. That looks like my bug to me, but I’ll try out the latest snapshot tonight and report back here |
Comment by Zach Wolfe (JIRA) Actually the crash still occurs on the latest 4.2 snapshot available on swift.org.
|
OK. Arnold, can you take a look to see if there's something different about this case? |
Comment by Zach Wolfe (JIRA) Just a heads up, the type in question has been deleted in master. So to repro you'll want to grab 43d1d1f or earlier. |
The change went into swift-4.2-branch yesterday morning. Maybe the snapshot you tried did not have the fix yet. I tried with the following snapshot today (it has the necessary change) and both `swift build` and `swift build -c release` work without a trap $ /Library/Developer/Toolchains/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-06-11-a.xctoolchain/usr/bin/swiftc -v I tried the repo at:
|
Fixed in the current snapshot or later. |
Comment by Zach Wolfe (JIRA) Oh, okay. Thanks Arnold. |
Environment
Xcode 10 Beta 1, macOS High Sierra 10.13.5, Swift 4.2. Debug mode.
Additional Detail from JIRA
md5: d0d48fb60f2abf66fb9fb4a73533e5da
duplicates:
Issue Description:
My project is able to crash the compiler. It seems to be related to my type Pointer, which the error message complained about. When the type was private, the compiler crashed; I made it public (as you'll see it on GitHub), and it compiles just fine.
Below is the crash log.
The text was updated successfully, but these errors were encountered: