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-6121] Internal error on shadowing let in a guard #48676

Closed
swift-ci opened this issue Oct 11, 2017 · 1 comment
Closed

[SR-6121] Internal error on shadowing let in a guard #48676

swift-ci opened this issue Oct 11, 2017 · 1 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

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-6121
Radar None
Original Reporter kristianp (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment

Swift 4

Xcode 9.0 (9A235)

macOS 10.13

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

md5: f757176903de7c95e5385832c2d98538

duplicates:

  • SR-4387 Compiler Segmentation Fault 11 on wrongly ordered lets

Issue Description:

If I have a property called 'userID' and then in a function within that scope I shadow that property in a guard statement, an internal error will occur. This is reproducible each time in the attached playground, as well as when used in an Xcode project.

The crash no longer occurs if I rename the shadowing 'userID' to 'userID2'.

@belkadan
Copy link
Contributor

Yet another manifestation of SR-4387, although the shadowing is an interesting twist.

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

No branches or pull requests

3 participants