Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile/internal/types2: crash in type checker for program with invalid syntax #63835

Closed
griesemer opened this issue Oct 30, 2023 · 1 comment
Assignees
Labels
NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@griesemer
Copy link
Contributor

package p

func (x string) []byte {
        return []byte(x)
}

causes the type-checker to crash with a nil panic (missing function name in syntax tree).

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Oct 30, 2023
@griesemer griesemer self-assigned this Oct 30, 2023
@griesemer griesemer added NeedsFix The path to resolution is known, but the work has not been done. and removed compiler/runtime Issues related to the Go compiler and/or runtime. labels Oct 30, 2023
@griesemer griesemer added this to the Go1.22 milestone Oct 30, 2023
@gopherbot
Copy link

Change https://go.dev/cl/538059 mentions this issue: cmd/compile/internal/syntax: set up dummy name and type if func name is missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

2 participants