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-10165] Crash in swift::Lowering::SILGenFunction::emitLValue using keyPath subscript #52567

Open
rnapier opened this issue Mar 25, 2019 · 0 comments
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

Comments

@rnapier
Copy link

rnapier commented Mar 25, 2019

Previous ID SR-10165
Radar rdar://problem/49241969
Original Reporter @rnapier
Type Bug

Attachment: Download

Environment

Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Apple Swift version 5.0 (swiftlang-1001.0.69 clang-1001.0.45.2)

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

md5: 0dbf03ce04fe8b826855485ff96baea4

Issue Description:

The attached file crashes the compiler. It appears to be tied to the line:

    <span color="#aa0d91">if</span> <span color="#aa0d91">let</span> idx = <span color="#aa0d91">self</span>.firstIndex(where: { $0\[keyPath: keyPath\] == item\[keyPath: keyPath\] })

Attached crash logs from both 4.2.1 and 5.0 (they're a bit different).

@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
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
Projects
None yet
Development

No branches or pull requests

2 participants