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

Compilation error related to @TaskLocal on the latest nightly toolchains. #73793

Closed
fibrechannelscsi opened this issue May 21, 2024 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. concurrency Feature: umbrella label for concurrency language features triage needed This issue needs more specific labels

Comments

@fibrechannelscsi
Copy link
Contributor

Description

The code below fails to compile on the latest nightly toolchains.
The error generated is: macro type 'SwiftMacros.TaskLocalMacro' not found when expanding macro 'TaskLocal '

Reproduction

Copy and paste the following code into a new project, and build in Debug mode.

struct A {@TaskLocal static var a: Self?}

Expected behavior

The compilation should succeed.

Environment

Nightly toolchains 2024-05-14a and 2024-05-15a are affected.
Toolchains in the range of 2023-07-10a to 2024-05-01a build this correctly.

Additional information

This prevents certain packages from building; one example is XCTest Dynamic Overlay: https://github.com/pointfreeco/xctest-dynamic-overlay

@fibrechannelscsi fibrechannelscsi added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels May 21, 2024
@asl asl added the concurrency Feature: umbrella label for concurrency language features label May 30, 2024
@fibrechannelscsi
Copy link
Contributor Author

This is fixed as of the 2024-06-04a toolchain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. concurrency Feature: umbrella label for concurrency language features triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

2 participants