You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stephentyrone opened this issue
Apr 10, 2018
· 6 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
If we apply the following change to Integers.swift.gyb:
@@ -1537,7 +1537,7 @@ public protocol BinaryInteger : /// /// The `Words` type must conform to the `Collection` protocol with an /// `Element` type of `UInt`. - associatedtype Words : Sequence where Words.Element == UInt + associatedtype Words : Collection where Words.Element == UInt, Words.Index == Int
/// A collection containing the words of this value's binary /// representation, in order from the least significant to most significant.
then swiftc crashes:
Assertion failed: (Val && "isa<> used on a null pointer"), function doit, file /Users/styrone/Checkouts/swift-source/llvm/include/llvm/Support/Casting.h, line 106.
The text was updated successfully, but these errors were encountered:
2. While resolving type Unicode._ParsingIterator at [/Users/styrone/Checkouts/swift-source/swift/stdlib/public/core/UnicodeParser.swift:125:11 - line:125:19] RangeText="Unicode.=_"
3. While validating '_ParsingIterator' at /Users/styrone/Checkouts/swift-source/swift/stdlib/public/core/UnicodeParser.swift:110:3
4. While validating '_UnicodeEncoding' at /Users/styrone/Checkouts/swift-source/swift/stdlib/public/core/UnicodeEncoding.swift:13:8
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Attachment: Download
Additional Detail from JIRA
md5: eb0d5b061f10867e4f54c60bc5e0aa78
Issue Description:
If we apply the following change to Integers.swift.gyb:
@@ -1537,7 +1537,7 @@ public protocol BinaryInteger :
///
/// The `Words` type must conform to the `Collection` protocol with an
/// `Element` type of `UInt`.
- associatedtype Words : Sequence where Words.Element == UInt
+ associatedtype Words : Collection where Words.Element == UInt, Words.Index == Int
/// A collection containing the words of this value's binary
/// representation, in order from the least significant to most significant.
then swiftc crashes:
Assertion failed: (Val && "isa<> used on a null pointer"), function doit, file /Users/styrone/Checkouts/swift-source/llvm/include/llvm/Support/Casting.h, line 106.
The text was updated successfully, but these errors were encountered: