Skip to content

Can't perform pointer casts in constant expressions #4531

@jdm

Description

@jdm

<anon>:41:26: 41:60 error: can not cast to *core::libc::types::os::arch::c95::c_char in a constant expression

There's an llvm::LLVMConstPointerCast, so I don't see why this should be forbidden.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions