Skip to content

Segfault 2 #56

@modulovalue

Description

@modulovalue

The following program is also segfaulting on my machine (cf. #55)

  // ...
  const program = r"""
void main() {
  b(() {
    var c = [];
    set.f(g.h);
    i(j, k(['l', 'm']));
  });
}
""";
  parser.parse(program);
  // ...

(@TimWhiting FYI) The segfault appears to have been fixed by changing the following line from:

return (result.cast(), units.length);

to:

  return (result.cast(), units.length + 1); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions