Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

References in Tuples is undefined #3

Open
ErikMcClure opened this issue Sep 2, 2022 · 0 comments
Open

References in Tuples is undefined #3

ErikMcClure opened this issue Sep 2, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ErikMcClure
Copy link
Contributor

Using a reference in a tuple results in invalid LLVM generation, because this case is not handled by the compiler at all:

using import struct

type foo : i32

struct bar
    f : (& foo)


local f : foo = (bitcast 1 foo)
let b =
    bar
        f = f
_;

Work needs to be done to extend the type system to include reference types inside tuples and correctly compile them.

@ErikMcClure ErikMcClure added bug Something isn't working and removed bug labels Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant