Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Compiler segfault when getting a nonexistant member from an unnamed struct #2533

@Book-reader

Description

@Book-reader
struct Test
{
  struct
  {
    int x;
  }
}

fn void main()
{
  Test t;
  Test.membersof[0].get(t).x; // fine
  Test.membersof[0].get(t).y; // segfault
}

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingFixed needs testingNeeds verification / testing that it now works

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions