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-13422] Compiler crash when evaluating Deque.first #55863

rnapier opened this issue Aug 19, 2020 · 2 comments

[SR-13422] Compiler crash when evaluating Deque.first #55863

rnapier opened this issue Aug 19, 2020 · 2 comments


Copy link

@rnapier rnapier commented Aug 19, 2020

Previous ID SR-13422
Radar rdar://problem/67425944
Original Reporter @rnapier
Type Bug

Attachment: Download

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

md5: f2d290fd2d82ce48beaad4c29de73a69

Issue Description:

Using attaswift/Deque, using Collection methods sometimes confuses the compiler. Generally it just doesn't understand that Deque<T>.Element is T. Sometimes it complains that the compiler can't generate a diagnostic. And finally I got it to crash (attached).

I can't easily reproduce this in a Playground. It generally seemed to work fine. But in my project, Deque breaks the compiler any time I try to use Collection methods on it.

The crash came when I added (_buffers is a Deque<PlayBuffer>):

            let buffer = self._buffers.first
Copy link

@lorentey lorentey commented Aug 19, 2020

@swift-ci create

Copy link

@slavapestov slavapestov commented Aug 19, 2020

I found, but do you mind including a test case using the library that demonstrates the crash?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

3 participants