mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When importing C++ methods, Swift always assumes that methods named `begin()` and `end()` are unsafe, since these methods commonly return iterator types that are inherently unsafe in Swift. Some additional logic in Sema tries to diagnose usages of `.begin()` and `.end()` from Swift and suggest safe alternatives. That logic had a null pointer dereference bug. rdar://153814676 / resolves https://github.com/swiftlang/swift/issues/82361
2.1 KiB
2.1 KiB