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

Compilation of broken recursive typedeclarations gives really obscure error. #245

Closed
gopherbot opened this issue Nov 17, 2009 · 3 comments
Closed

Comments

@gopherbot
Copy link
Contributor

by christophe.poucet:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1.
cat > test.go <<EOF
package main

type Broken Broken

func foo() Broken {
  return foo;
}

func main() {
  print("hello");
}
EOF
2.
6g test.go
test.go:3: fatal error: dowidth any
3.

What is the expected output? What do you see instead?
The error message is very unintuitive.

What is your $GOOS=linux?  $GOARCH=amd64?


Which revision are you sync'ed to?  (hg log -l 1)


Please provide any additional information below.
@rsc
Copy link
Contributor

rsc commented Nov 18, 2009

Comment 1:

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

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Dec 2, 2009

Comment 2:

Labels changed: added compilerbug.

@rsc
Copy link
Contributor

rsc commented Dec 3, 2009

Comment 3:

This issue was closed by revision 05a1eb1.

Status changed to Fixed.

Merged into issue #-.

@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

2 participants