Skip to content

[SR-305] Simple, legit literal takes exponentially growing compile time. #42927

@dduan

Description

@dduan
Previous ID SR-305
Radar None
Original Reporter @dduan
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Additional Detail from JIRA
Votes 6
Component/s Compiler
Labels Bug, TypeChecker
Assignee @jopamer
Priority Medium

md5: 671f0ac06627b6519c1b4f035d41c57c

Issue Description:

Run swiftc -dump-ast on this file, the compilation will never finish. Removing values gradually from the array and you'll notice that the shorter the expression, the less time it takes.

long.swift

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselftype checkerArea → compiler: Semantic analysis

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions