golang/go

gccgo: segmentation fault (3)

dvyukov opened this issue · 2 comments

package a
var a = (0<)/0/5
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
0x5eadcc Binary_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:5660
0x5eadcc Binary_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:5660
0x5eadcc Binary_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:5660
0x5ea8bd Expression::comparison(Translate_context*, Type*, Operator, Expression*, Expression*, Location)
    ../../gcc/go/gofrontend/expressions.cc:6120
0x5eafa6 Binary_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:5600
0x5f0d56 Type_conversion_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:3256
0x614758 Variable::get_init(Gogo*, Named_object*)
    ../../gcc/go/gofrontend/gogo.cc:6358
0x62767b Gogo::write_globals()
    ../../gcc/go/gofrontend/gogo.cc:1383

gcc version 6.0.0 2015070 (experimental) (GCC)

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