Skip to content

Bug C backend: Cannot import Union  #1914

Closed
@ronnuriel

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

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