Skip to content

glue_drop and glue_take in bad order #3290

Closed
@Vincent-Belliard

Description

When a shared reference is assign, the glue_drop function is called with the old value before the glue_take function is called with the new_value. With an assignment like "self.o = self.o;" the generated program will core.

Of course, it's a silly example. All other examples I tried make a glue_take before calling the assignment (for example if you call a function with the argument "self.o" which will be then assigned) so you should never have this case in a real program.

Maybe it doesn't need to be fixed as it shouldn't happen with a real program.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.P-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions