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-9281] Invalid AST when forcing result of a cast to an IUO type #51753

Open
swift-ci opened this issue Nov 16, 2018 · 2 comments
Open

[SR-9281] Invalid AST when forcing result of a cast to an IUO type #51753

swift-ci opened this issue Nov 16, 2018 · 2 comments
Assignees
Labels
access control Feature → modifiers: Access control and access levels 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 swift 4.2

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-9281
Radar rdar://problem/46129319
Original Reporter ranahaani (JIRA User)
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 4.2Regression, CompilerCrash
Assignee @slavapestov
Priority Medium

md5: cd2ce39239aa20ce88c82127d16bdfc6

Issue Description:

Hi, Recently upgraded my Xcode to 10, my app was working fine on Xcode 9 but in Xcode 10 it shows an error. I posted this error at StackOverflow, Reddit, and others forum. I found no solution. I think this is kind of any bug. It used to work before I updated to Xcode 10.

find a repo under https://bitbucket.org/ranahaani/cleaniqpro.git

Here's log:

error: Segmentation fault: 11

  1. While emitting SIL

  2. While silgen emitFunction SIL function "@$S11

  3. While silgen closureexpr SIL function

I put complete Question at StackOverflow

Here's snapshot

I attached my project files.

@slavapestov
Copy link
Member

Thanks for the bug report. I've reproduced the issue and will try to reduce a test case.

@slavapestov
Copy link
Member

This crashes when built with -swift-version 4:

let x: Any? = nil
var s = ""
s = (x as? String!)!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added regression swift 4.2 access control Feature → modifiers: Access control and access levels and removed 4.2 regression labels Nov 19, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
access control Feature → modifiers: Access control and access levels 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 swift 4.2
Projects
None yet
Development

No branches or pull requests

3 participants