Skip to content

Can't perform pointer casts in constant expressions #4531

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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