Skip to content

Fix CIR parsing problem with struct/classes #9

@bcardosolopes

Description

@bcardosolopes

For something simple as:

struct String {
  long size;
  long capacity;

  String() : size{0}, capacity{0} {}
  String(char const *s) : size{strlen(s)}, capacity{size} {}
};

We can emit CIR but not read it back:

error: expected '=' in type alias definition
!22struct2EString22 = !cir.struct<"struct.String", i64, i64>
     ^

We probably need some CIR specific prefix here or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions