Skip to content

ASR: SubroutineCall.original_name should be an identifer? not a symbol? ? #1480

@rebcabin

Description

@rebcabin

The ASR spec for SubroutineCall is (modulo Issue #1479)

;; | SubroutineCall(symtab-id id, symbol name, symbol? original_name,
;;                  call_arg* args, expr? dt)

Should original_name be an identifer? (optional identifier) and not a symbol? (optional symbol)? Generally speaking, symbols are recursively evaluated, as in

symbol
    = Program(symbol_table symtab, identifier name, identifier* dependencies,
        stmt* body)
    | Module(symbol_table symtab, identifier name, identifier* dependencies,
        bool loaded_from_mod, bool intrinsic)
    | Function(symbol_table symtab, identifier name, identifier* dependencies, expr* args, stmt* body,
        expr? return_var, abi abi, access access, deftype deftype,
        string? bindc_name, bool elemental, bool pure, bool module, bool inline,
        bool static, ttype* type_params, symbol* restrictions, bool is_restriction,
        bool deterministic, bool side_effect_free)
    | GenericProcedure(symbol_table parent_symtab, identifier name,

etc., whereas identifiers (which are not spec'ced in ASDL) evaluate to themselves.

Metadata

Metadata

Assignees

No one assigned

    Labels

    asrASR related changesquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions