golang/go

gccgo: rejects valid imaginary literal

dvyukov opened this issue · 2 comments

gccgo fails to compile the following program:

package A
var g=08i
go.go:2:8: error: expected ‘;’ or newline after top level declaration

Spec contains similar example:

011i  // == 11i

gcc version 6.0.0 2015070 (experimental) (GCC)

CL https://golang.org/cl/13791 mentions this issue.