Skip to content

gccgo miscompiles (but 6g does not) this code #337

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

Closed
gopherbot opened this issue Nov 25, 2009 · 2 comments
Closed

gccgo miscompiles (but 6g does not) this code #337

gopherbot opened this issue Nov 25, 2009 · 2 comments

Comments

@gopherbot
Copy link
Contributor

by mdevan.foobar:

What steps will reproduce the problem?
1. Compile and run this code using both gccgo and 6g.
----------

// file "c.go"

package main

import "go/parser";

func main() {

    parser.ParseFile("c.go", nil, parser.Trace);

}

----------

What is the expected output? What do you see instead?
./6.out produces correct output, but ./a.out never stops executing (emits
endless stream of ". "):

    4:  1: File (
    4:  1: . . . . <keeps going>

What is your $GOOS?  $GOARCH?
linux amd64

Which revision are you using?  (hg identify)
2f32e74ab96e (go)
r154488      (gccgo)

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

Comment 1:

Labels changed: added gccgo.

Owner changed to [email protected].

Status changed to Accepted.

@ianlancetaylor
Copy link
Contributor

Comment 2:

I have committed a patch to fix this problem.  Sorry for the long delay.

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

2 participants