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: checkwidth (interface {}, string) #3044

Closed
gopherbot opened this issue Feb 16, 2012 · 5 comments
Closed

internal compiler error: checkwidth (interface {}, string) #3044

gopherbot opened this issue Feb 16, 2012 · 5 comments

Comments

@gopherbot
Copy link
Contributor

by sunfmin:

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

   the attachment

2. What is the full compiler output?

FelixMBP:learn-go-the-hard-way sunfmin$ go run internal_compile_error.go 
# _/top.a
/Users/sunfmin/Developments/learn-go-the-hard-way/internal_compile_error.go:1: internal
compiler error: checkwidth (interface {}, string)


3. What version of the compiler are you using?  (Run it with the -V flag.)

FelixMBP:learn-go-the-hard-way sunfmin$ go version
go version weekly.2012-02-14 +43cf9b39b647

Attachments:

  1. internal_compile_error.go (219 bytes)
@remyoudompheng
Copy link
Contributor

Comment 1:

I also get a strange error with gccgo:
In function ‘top.unwrap.N16_go.top.taobaoMap’:
go1: internal compiler error: in do_mangled_name, at go/gofrontend/types.cc:3821
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html>; for instructions.

@remyoudompheng
Copy link
Contributor

Comment 2:

This is the minimal example I guess.
package top
func F() (a interface{}, b int) {
      return F(), b
}

@remyoudompheng
Copy link
Contributor

Comment 3:

Working on a patch.

@remyoudompheng
Copy link
Contributor

Comment 4:

This issue was closed by revision 1d3ca92.

Status changed to Fixed.

@ianlancetaylor
Copy link
Member

Comment 5:

For the record, I fixed the gccgo crash as well.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
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