-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of software
Description
| Previous ID | SR-9504 |
| Radar | None |
| Original Reporter | sergiocampama (JIRA User) |
| Type | Bug |
| Status | Resolved |
| Resolution | Duplicate |
Environment
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, CompilerCrash |
| Assignee | None |
| Priority | Medium |
md5: 7e722d71160f2e3ad76573ad6218efce
duplicates:
- SR-9451 Compiler crash SILFunctionTransform "DefiniteInitialization"
Issue Description:
class Crash {
{{ var pointer: Crash}}
{{ init() { }}pointer = self {{}}}
{{}}}
When running `swift crash.swift`, the swift compiler will segfault with the following error:
1. While running pass #53 SILFunctionTransform "DefiniteInitialization" on SILFunction "@$S5crash5CrashCACycfc".1. While running pass #53 SILFunctionTransform "DefiniteInitialization" on SILFunction "@$S5crash5CrashCACycfc". for 'init()' at [FILE]
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of software