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

Ambiguous use of 'initialize(fromContentsOf:)' in UnsafeMutableBufferPointer+Extras.Slice #387

Open
JessyCatterwaul opened this issue Jun 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@JessyCatterwaul
Copy link

JessyCatterwaul commented Jun 11, 2024

Collections doesn't compile with the first Xcode 16 beta.

UnsafeMutableBufferPointer+Extras has an Ambiguous use of 'initialize(fromContentsOf:)' error.

How should we get around this?

Information

  • Package version: main
  • Platform/Swift version: swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10)
    Target: arm64-apple-macosx14.0

Checklist

  • ☑️ If possible, I've reproduced the issue using the main branch of this package.
  • ☑️ I've searched for existing GitHub issues.
@JessyCatterwaul JessyCatterwaul added the bug Something isn't working label Jun 11, 2024
@JessyCatterwaul
Copy link
Author

JessyCatterwaul commented Jun 19, 2024

I see that this has gotten 6 thumbs ups, so it can't just be me, but haven't been able to whittle this down to what's minimally necessary to reproduce the problem.

@lorentey
Copy link
Member

lorentey commented Jul 8, 2024

I haven't been able to locally reproduce this, however, this is the sort of source break that can be triggered by SE-0437.

SE-0437 did not generalize the standard initialize(fromContentsOf:) functions, though -- I'd expect such source compat regressions to only affect entry points that did get generalized. However, there may be some undiagnosed compiler regression.

If you're still seeing this with the current dev snapshots (and/or Xcode betas), reproduction steps would be very welcome. Please include the precise toolchain versions that exhibit the issue, as well as the raw compiler output, including verbatim copies of all diagnostic messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants