Navigation Menu

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-5798] Segfault when building #48368

Closed
swift-ci opened this issue Aug 29, 2017 · 3 comments
Closed

[SR-5798] Segfault when building #48368

swift-ci opened this issue Aug 29, 2017 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-5798
Radar None
Original Reporter haim (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

macOS Sierra, 10.12.6

Xcode 8.3.3 (8E3004b)

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

md5: 6ab5fefb9365bb70f8adafefcb6c2a30

duplicates:

  • SR-1076 SILGen crash on overloading functions which take varargs & arrays

Issue Description:

The following code crashes the compiler. Can be run from the playground:

//: Playground - noun: a place where people can play

func print(_ strings: [String], int: Int) {
  for e in strings {
    print(e)
  }
}

func print(_ strings: String..., int: Int) {
  for e in strings {
    print(e)
  }
}
@CodaFi
Copy link
Member

CodaFi commented Aug 30, 2017

This seems to be resolved in my Xcode 9 (shipping swiftlang-900.0.63.10) and on master. Can successfully reproduce with swiftlang-802.0.53.

@belkadan
Copy link
Contributor

Fixed in Swift 4!

@swift-ci
Copy link
Collaborator Author

Comment by Hai Mac (JIRA)

Excellent news, thank you!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 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.
Projects
None yet
Development

No branches or pull requests

3 participants