Skip to content

cmd/compile: exit compilation earlier if type checking fails #22909

Closed

Description

@mdempsky

Issues like #22904 happen because the backend doesn't expect to deal with invalid code. Instead of having to kludge checks everywhere, we should just exit compilation at the end of type checking if we found any errors. (Analogously, we already exit after parsing if there are syntax errors.)

/cc @griesemer

Activity

  1. added this to the Go1.11 milestone on Nov 28, 2017
  2. griesemer commented on Jun 5, 2018

    @griesemer
    Contributor

    This should be easy to do and increase compiler stability. Marking release blocker.

  3. self-assigned this
    on Jun 5, 2018
  4. gopherbot commented on Jun 5, 2018

    @gopherbot
    Contributor

    Change https://golang.org/cl/116335 mentions this issue: cmd/compile: terminate compilation if type-checking fails

  5. locked and limited conversation to collaborators on Jun 6, 2019
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions