Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

22064783: Swift 2.0b4: Mutually recursive protocols cause swiftc to infinite loop and crash #54

Open
openradar-mirror opened this issue Aug 3, 2015 · 0 comments

Comments

@openradar-mirror
Copy link

Description

Summary:
So, y’all use recursion too!

Steps to Reproduce:
This code:
protocol A {
typealias O : B
}
protocol B {
typealias O : A
}

Expected Results:
should not crash swiftc

Actual Results:
but totally does:
510 swift 0x0000000103a1c8bf swift::ArchetypeBuilder::addConformanceRequirement(swift::ArchetypeBuilder::PotentialArchetype_, swift::ProtocolDecl_, swift::RequirementSource) + 655
511 swift 0x0000000103a1c8bf swift::ArchetypeBuilder::addConformanceRequirement(swift::ArchetypeBuilder::PotentialArchetype_, swift::ProtocolDecl_, swift::RequirementSource) + 655

Regression:
N/A

Notes:
N/A

Product Version: Xcode-beta (7A165t)
Created: 2015-07-30 01:52:25.289300
Originated: 2015-07-29T21:52:00
Open Radar Link: http://www.openradar.me/22064783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant