Skip to content

[SR-4518] Remote mirrors needs to support multi-payload enums #47095

@swift-ci

Description

@swift-ci
Previous ID SR-4518
Radar rdar://31666592
Original Reporter Jay18001 (JIRA User)
Type Bug

Attachment: Download

Environment

I've only tested on iOS 10.3 with Xcode 8.3 on 10.12.3 (16D32)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, Leak
Assignee @mikeash
Priority Medium

md5: d6c09cb4c02ae76ce77a67ef1ead510e

Issue Description:

There is a swift_slowAlloc leak when using an enum like the following. The leak only occurs when the second case is used in the third like auto(estimate: .fixed(size: 10)).

public indirect enum Enum {
case ratio(ratio: CGFloat)
 case fixed(size: CGFloat)
 case auto(estimate: Enum)
}

However it does not accure when the first case is used with the third like auto(estimate: .ratio(ratio: 10))

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfmemory leakbug: Memory leak

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions