Skip to content

C Macros cannot be marked as constants or private, cannot be renamed, fails silently. #89244

@bruxisma

Description

@bruxisma

Description

C Macros cannot be marked as constants or private when holding a value. As a result there is no way to provide a SwiftName for them, and the compiler provides no insight as to why this is skipped

Reproduction

Try to give a SwiftName to any C macro or declaration to rename it.

Expected behavior

That at least an error or warning explaining why this won't work is printed

Environment

Swift version 6.3.2 (swift-6.3.2-RELEASE)
Target: x86_64-unknown-windows-msvc
Build config: +assertions

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage neededThis issue needs more specific labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions