Skip to content

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

Closed
@gopherbot

Description

@gopherbot

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions