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

Compiler reports error past end of file #3392

Closed
gopherbot opened this issue Mar 25, 2012 · 3 comments
Closed

Compiler reports error past end of file #3392

gopherbot opened this issue Mar 25, 2012 · 3 comments

Comments

@gopherbot
Copy link

by bsteinbr:

What steps will reproduce the problem?
$ nl bug.go 
     1  package bug
     2  func bug() {
     3          foo(1,
$ go build bug.go 
# command-line-arguments
./bug.go:5: syntax error: unexpected EOF, expecting )

What is the expected output?
"unexpected EOF" error reported for line 3.

What do you see instead?
"unexpected EOF" error reported for line 5 (which doesn't exist).

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
linux

Which revision are you using?  (hg identify)
go version weekly.2012-03-22 +ee5c7588cb7f
@robpike
Copy link
Contributor

robpike commented Mar 25, 2012

Comment 1:

Labels changed: added priority-later, compilerbug, removed priority-triage.

Status changed to Accepted.

@ality
Copy link
Member

ality commented Mar 26, 2012

Comment 2:

https://golang.org/cl/5909058/

@ality
Copy link
Member

ality commented Apr 26, 2012

Comment 3:

This issue was closed by revision 42aa9ab.

Status changed to Fixed.

@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