Skip to content

[SR-2887] SILGen incorrect TupleShuffleExpr lowering #45481

Closed
@swift-ci

Description

@swift-ci
Previous ID SR-2887
Radar None
Original Reporter TadeasKriz (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

macOS 10.12
Xcode 8.0 (8A218a)

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

md5: b472bb38b280b09607f3954284081b38

is duplicated by:

  • SR-3323 Compiler segmentation fault 11 when insert in array of tuples
  • SR-3098 Assertion failed: (!SpecialDests && "shuffle nested within varargs expansion?")

Issue Description:

The following Swift 3.0 ends with Segmentation fault 11.

let data = (a: "", b: 0)
func f(a: String, b: Int) { }
func run<T>(data: T, f: (T) -> ()) { }
run(data: data, f: f)

The problem seems to be in the names of parameters in the `data` tuple. If removed and the tuple is just {code:none}("", 0)

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwaretype checkerArea → compiler: Semantic analysis

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions