Skip to content
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-13654] Compiler segfault in Swift 5.3.1 #56091

Closed
swift-ci opened this issue Oct 5, 2020 · 2 comments
Closed

[SR-13654] Compiler segfault in Swift 5.3.1 #56091

swift-ci opened this issue Oct 5, 2020 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Oct 5, 2020

Previous ID SR-13654
Radar rdar://problem/69958774
Original Reporter rnikander (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

macOS 11.0 Big Sur beta (20A5384c)

Version 12.2 beta 2 (12B5025f)

Apple Swift version 5.3.1 (swiftlang-1200.0.39 clang-1200.0.32.6)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: f72362e41a88c018f3ea34392e5769e0

Issue Description:

I'm using Xcode 12.2 beta and I wrote something that crashed the Swift compiler. I've attached a small project to demonstrate it, along with a text file showing the output.

@typesanitizer
Copy link

@swift-ci create

@slavapestov
Copy link
Member

The testReadlink() function calls readlink(), which is "throws", but testReadlink() is not "throws". This should be rejected by the compiler, but it isn't because of how the string interpolation expression is nested inside the 'try'. I have a fix: #34340

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

3 participants