Skip to content

[4.1] [SR-5022] Diagnose an invalid use of non-polymorphic constructors #14097

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

Merged
merged 3 commits into from
Jan 24, 2018

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented Jan 23, 2018

Explanation: Diagnoses an invalid uses of non-polymorphic constructors, which (if undiagnosed) would cause a crash later in the ripely.
Scope of Issue: Correctly rejects invalid code that would have crashed the compiler later.
Origination: N/A
Risk: Low risk; we would have crashed on this code anyway.
Reviewed By: @jrose-apple
Testing: Compiler regression tests.
Radar / SR: rdar://problem/21991470, SR-5022

(cherry picked from commit b217d36)
…etype

This is a corner case but would previously lead to a compiler crash
or miscompile.

Fixes <rdar://problem/21991470>, <https://bugs.swift.org/browse/SR-5022>.

(cherry picked from commit 336a97b)
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please nominate

@DougGregor DougGregor changed the title [SR-5022] Diagnose an invalid use of non-polymorphic constructors [4.1] [SR-5022] Diagnose an invalid use of non-polymorphic constructors Jan 23, 2018
@AnnaZaks AnnaZaks merged commit 77a4527 into swiftlang:swift-4.1-branch Jan 24, 2018
@DougGregor DougGregor deleted the sr-5022-4.1 branch January 24, 2018 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants