Skip to content

Bug C backend: Cannot import Union  #1914

Closed

Description

@ronnuriel

Error when trying to import union:

@dataclass
class A:
    ax: i32
@ccall
@union
class D(Union):
    a: A = A()

from common import D

ERROR:

semantic error: Only Subroutines, Functions, StructType, Variables and ExternalSymbol are currently supported in 'import'
  --> /Users/ronnuriel/git/copperhead/demo-apps/belex-direct-fragment/device/../mat_vec_device.py:19:1
   |
19 | from common import D

Activity

  1. added
    cLabel for C language related changes
    asrASR related changes
    on Jun 15, 2023
  2. self-assigned this
    on Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

asrASR related changescLabel for C language related changes

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions