golang / go

The Go programming language

Home Page:https://go.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gccgo: internal compiler error in global_variable_set_init

dvyukov opened this issue · comments

gccgo crashes on the following program:

package a
var a = 1e20/complex64(1e-20)
go1: internal compiler error: in global_variable_set_init, at go/go-gcc.cc:2440
0x607000 Gcc_backend::global_variable_set_init(Bvariable*, Bexpression*)
    ../../gcc/go/go-gcc.cc:2440
0x6276ed Gogo::write_globals()
    ../../gcc/go/gofrontend/gogo.cc:1395

gcc version 6.0.0 20150702 (experimental) (GCC)

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

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