Skip to content

Windows-only compilation failure using #sourceLocation #63001

@grynspan

Description

@grynspan

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

No one assigned

    Labels

    #sourceLocationFeature → compiler control statements: Line control statementsWindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcompiler control statementsFeature: compiler control statementsparserArea → compiler: The legacy C++ parserunexpected errorBug: Unexpected error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions