-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
swift_newtype + (Equatable & import Foundation) cause compiler crash on Linux #71086
Comments
Tracked on upstream with swiftlang/swift#71086
Tracked on upstream with swiftlang/swift#71086
Checking the code, it looks like we should not trigger |
Full backtrace on swift-release-5.10.
A newbie on debugging Swift compiler on Linux. Hope someone can help investigate the issue. |
Following the
Then I run Then the issue is happening on |
Description
For a C target symbol imported as Swift struct, Equatable + import Foundation cause a compiler crash on Linux
Reproduction
Bug reproduce step:
Add a C target define uint32 as a struct
import the C module and use the type in our Swift code. If we add
Equatable
to our Swift type and haveimport Foundation
statement in the same module, we'll get a compiler crash here.Comment on Line 2 or Line 7 will not crash the compiler.
Or you can just download
DemoKit.zip
here and runswift build
.DemoKit.zip
Stack dump
Expected behavior
Compile normally as the same on iOS and macOS.
Environment
Additional information
Forums link: https://forums.swift.org/t/69577
The text was updated successfully, but these errors were encountered: