Skip to content

Problem casting mut ref in call to native function #2214

Closed
@boggle

Description

@boggle

Passing a v: &mut int to a function in a native module that expects a &mut c_int via a type cast v as &mut c_int yields an internal compiler error

I hit this when rewriting math and am logging this here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions