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-3942] Crasher with extension and default values #46527

Closed
hartbit opened this issue Feb 13, 2017 · 2 comments
Closed

[SR-3942] Crasher with extension and default values #46527

hartbit opened this issue Feb 13, 2017 · 2 comments
Assignees
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 SILGen Area → compiler: The SIL generation stage

Comments

@hartbit
Copy link
Collaborator

hartbit commented Feb 13, 2017

Previous ID SR-3942
Radar rdar://problem/28997795
Original Reporter @hartbit
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, SILGen
Assignee @slavapestov
Priority Medium

md5: 5c280e60f6ad3a3f318fa16d68a2ee3e

Issue Description:

The following script crashes the compiler in 3.0.2 and latest 3.1:

{ echo 'struct A { let a: String = "" }' > a.swift; echo 'extension A { init(b: String) {} }' > b.swift; swiftc a.swift b.swift }

Perhaps related, a very similar piece of code hangs indefinitely in 3.0.2:

{ echo 'enum A { case a }; struct B { var a: A = .a }' > a.swift; echo 'extension B { init(b: String) {} }' > b.swift; swiftc a.swift b.swift }
@swift-ci
Copy link
Collaborator

Comment by Oliver Atkinson (JIRA)

+1

@slavapestov
Copy link
Member

#7445

@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 SILGen Area → compiler: The SIL generation stage
Projects
None yet
Development

No branches or pull requests

4 participants