Skip to content

GAZPREA: Untyped empty array literal reaches code gen instead of being a error #170

Open

Description

@tangey

The reference compiler crashes during code generation for a untyped array literal:

procedure main() returns integer {
  var values = [];
  return 0;
}

The compiler produces a llvm error here, but since the array spec states that [] carries no type, its element type cannot be inferred so it should be a TypeError in type checking.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions