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-11717] Property Wrapper Compiler Segfault #54126
Comments
Seems to compile on master without a crash. Can you verify using the latest development (trunk) snapshot? |
(by the way, it's a private feature so this is probably expected, but still the compiler shouldn't be crashing) |
Comment by Chris Ballinger (JIRA) Thanks for the speedy reply! Haven’t configured Xcode to use custom versions of Swift yet, will have to look into that. I’m aware that it’s a private feature but I was just curious if an idea I had would work. 🙂 |
Just using toolchains I happen to have lying around, it seems to have been fixed on master between 9/18 and 9/29. |
Comment by Chris Ballinger (JIRA) brentdax (JIRA User) Awesome! Would that mean the fix probably got merged into the `swift-5.2-branch`? And if so, if Swift 5.2 will be shipping with Xcode 11.3? I didn't find much info here: https://swift.org/blog/5-2-release-process/ |
Swift 5.2 hasn't branched yet because things are going smoothly, so unless this bug is weirder than it looks, it should be fixed in Swift 5.2. I can't discuss Xcode release schedules, but if you see this in a beta where |
Comment by Chris Ballinger (JIRA) Ah ya, no worries, I’ll keep an eye out. Thanks! |
Comment by Chris Ballinger (JIRA) I can confirm this is fixed in Swift 5.2 on Xcode 11.4. Would love for this to be made a public API soon! |
Attachment: Download
Environment
Xcode 11.2
Additional Detail from JIRA
md5: b3cb5c3d3c13607ee0344601b5ed46ff
is duplicated by:
Issue Description:
Attempting to use a workaround for the propertyWrapper enclosing self results in a compiler crash. Using this as a guide: https://github.com/apple/swift-evolution/blob/master/proposals/0258-property-wrappers.md#referencing-the-enclosing-self-in-a-wrapper-type
As well as a snippet of code by iankeen (JIRA User): https://gist.github.com/IanKeen/6c28a0fbd9e51ed108444b0235b3af16
This seems to be the issue:
swift::constraints::ConstraintSystem::resolveOverload(swift::constraints::ConstraintLocator*, swift::Type, swift::constraints::OverloadChoice, swift::DeclContext*) + 341
The text was updated successfully, but these errors were encountered: