Skip to content

current_scope's asr_owner is pointing to nullptr. #2385

@arteevraina

Description

@arteevraina

In this testcase, current_scope->asr_owner is pointing to nullptr when orientation dependency is being added.

This simplest way to reproduce it is by adding this log at https://github.com/lcompilers/lpython/blob/main/src/lpython/semantics/python_ast_to_asr.cpp#L1190.

std::cout << ASRUtils::symbol_name(stemp) << " " << current_scope->asr_owner << std::endl;

It should log this :

orientation 0x0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions