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-7347] Swift 4.1 Code runtime error with 'try' (it works for Swift 4.0) #49895

Closed
swift-ci opened this issue Apr 4, 2018 · 3 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software regression run-time crash Bug → crash: Swift code crashed during execution swift 4.1

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Apr 4, 2018

Previous ID SR-7347
Radar rdar://problem/39209244
Original Reporter chenyungui (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

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

md5: eb4cf98516d52db5e36c380ebce78670

Issue Description:

https://forums.swift.org/t/swift-4-1-incompatible-issue/11616

@belkadan
Copy link
Contributor

belkadan commented Apr 5, 2018

@swift-ci create

@swift-ci
Copy link
Collaborator Author

Comment by Fabian Ehrentraud (JIRA)

here's the code from the playground:

let xmlString = """
<?xml version="1.0" encoding="UTF-8"?>
<data>
<styleData>
<style>image</style>
<backgroundImage>02_000001@2x.png</backgroundImage>
<anchorAlign>btmCenter</anchorAlign>
</styleData>
</data>
"""

let xml = XML.init(string: xmlString)
if let styleData = xml["styleData"].xml {
    if let xmlList = styleData["aa"]["bb"].xmlList {
        print("here, \(xmlList)")
    } else {
        print("there")
    }
}

@beccadax
Copy link
Contributor

chenyungui (JIRA User) We think this one's been fixed in the Xcode 11.4 beta. Can you try it out and let me know?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 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 crash Bug: A crash, i.e., an abnormal termination of software regression run-time crash Bug → crash: Swift code crashed during execution swift 4.1
Projects
None yet
Development

No branches or pull requests

4 participants