golang/go

gccgo: internal compiler error in wide_int_to_tree (2)

dvyukov opened this issue · 2 comments

gccgo crashes on the following program:

package p
var v=0>>"
go1: internal compiler error: in wide_int_to_tree, at tree.c:1456
0xd452d3 wide_int_to_tree(tree_node*, generic_wide_int<wide_int_ref_storage<false> > const&)
    ../../gcc/tree.c:1456
0xd4642d double_int_to_tree(tree_node*, double_int)
    ../../gcc/tree.c:1288
0x606e4a Gcc_backend::integer_constant_expression(Btype*, __mpz_struct*)
    ../../gcc/go/go-gcc.cc:1231
0x5ea9ec Binary_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:5712
0x5f0726 Type_conversion_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:3269
0x61dd31 Variable::get_init_block(Gogo*, Named_object*, Bvariable*)
    ../../gcc/go/gofrontend/gogo.cc:6448
0x626547 Gogo::write_globals()
    ../../gcc/go/gofrontend/gogo.cc:1418

gofrontend is on commit 1d9d92ab09996d2f7795481d2876a21194502b89

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