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

internal compiler error: newname nil #1453

Closed
gopherbot opened this issue Jan 29, 2011 · 2 comments
Closed

internal compiler error: newname nil #1453

gopherbot opened this issue Jan 29, 2011 · 2 comments

Comments

@gopherbot
Copy link
Contributor

by robert.hencke:

1. What is a short input program that triggers the error?
package main

func main() {
    switch main() := interface{}(nil).(type) {
    default:
    }
}

2. What is the full compiler output?
ice.go:5: internal compiler error: newname nil

3. What version of the compiler are you using?  (Run it with the -V flag.)
6g version 7276
@robpike
Copy link
Contributor

robpike commented Jan 29, 2011

Comment 1:

Strange illegal code but perhaps the diagnostic could be better.

Owner changed to r...@golang.org.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Feb 1, 2011

Comment 2:

This issue was closed by revision 05b9050.

Status changed to Fixed.

@gopherbot gopherbot added the fixed label Feb 1, 2011
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants