-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed as duplicate of#57553
Labels
#sourceLocationFeature → compiler control statements: Line control statementsFeature → compiler control statements: Line control statementsWindowsPlatform: WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfcompiler control statementsFeature: compiler control statementsFeature: compiler control statementsparserArea → compiler: The legacy C++ parserArea → compiler: The legacy C++ parserunexpected errorBug: Unexpected errorBug: Unexpected error
Description
Description
Using #sourceLocation(file:line:)
fails on Windows only with the latest nightly toolchain (as of 2023-01-02.)
Steps to reproduce
In a Swift file, write:
#sourceLocation(file: "example.swift", line: 123)
Then build.
Expected behavior
Build succeeds.
Environment
- Swift compiler version info compnerd.org Swift version 5.8-dev (LLVM ab856b0fa3177ee, Swift 71c62c0)
- Deployment target: x86_64-unknown-windows-msvc
Metadata
Metadata
Assignees
Labels
#sourceLocationFeature → compiler control statements: Line control statementsFeature → compiler control statements: Line control statementsWindowsPlatform: WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfcompiler control statementsFeature: compiler control statementsFeature: compiler control statementsparserArea → compiler: The legacy C++ parserArea → compiler: The legacy C++ parserunexpected errorBug: Unexpected errorBug: Unexpected error