golang / go

The Go programming language

Home Page:https://go.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gccgo: segmentation fault (2)

dvyukov opened this issue · comments

gccgo crashes on the following input:

package a
const (d rune=(V/V)
V
go1: internal compiler error: Segmentation fault
0xb4170f crash_signal
    ../../gcc/toplev.c:360
0x5eb0d4 Binary_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:5756
0x5f431d Const_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:2864
0x619571 Named_constant::get_backend(Gogo*, Named_object*)
    ../../gcc/go/gofrontend/gogo.cc:6621
0x620726 Named_object::get_backend(Gogo*, std::vector<Bexpression*, std::allocator<Bexpression*> >&, std::vector<Btype*, std::allocator<Btype*> >&, std::vector<Bfunction*, std::allocator<Bfunction*> >&)
    ../../gcc/go/gofrontend/gogo.cc:7091
0x626912 Gogo::write_globals()
    ../../gcc/go/gofrontend/gogo.cc:1345

gcc version 6.0.0 2015070 (experimental) (GCC)

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