-
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-3938 |
| Radar | None |
| Original Reporter | derammo (JIRA User) |
| Type | Bug |
| Status | Resolved |
| Resolution | Done |
Environment
XCode Version 8.2.1 (8C1002)
Sorry, not sure what version of the compiler that product contains.
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, CompilerCrash |
| Assignee | None |
| Priority | Medium |
md5: 0f5262be002fddb1284da07beadd6173
duplicates:
- SR-3707 Assertion failed: (hasInterfaceType() && "No interface type was set")
Issue Description:
The following seg faults the compiler. Note the two files are mutually dependent. It does not crash if both are combined into one source file.
//
// main.swift
// CrashMe
//
// Created by Ammo Goettsch on 2/11/17.
//
import Foundation
class Generic<T> {
var t: T
init(t: T) {
self.t = t
}
}
class Example {
typealias External = ExternalGenericInstantiation
class Nested {
}
}//
// Second.swift
// CrashMe
//
// Created by Ammo Goettsch on 2/11/17.
//
import Foundation
class ExternalGenericInstantiation: Generic<Example.Nested> {
}
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