Closed
Description
gccgo crashes on the following program:
package a
func f() { print() }
go.go:2:12: warning: no arguments for builtin function ‘print’
func f() { print() }
^
go1: internal compiler error: Segmentation fault
0xb4170f crash_signal
../../gcc/toplev.c:360
0x5e3570 Expression::get_backend(Translate_context*)
../../gcc/go/gofrontend/expressions.cc:408
0x5eeb18 Builtin_call_expression::do_get_backend(Translate_context*)
../../gcc/go/gofrontend/expressions.cc:8213
0x64c5ac Expression_statement::do_get_backend(Translate_context*)
../../gcc/go/gofrontend/statements.cc:1740
0x61d9a7 Block::get_backend(Translate_context*)
../../gcc/go/gofrontend/gogo.cc:5811
0x61f1dc Function::build(Gogo*, Named_object*)
../../gcc/go/gofrontend/gogo.cc:5417
0x6206f7 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:7136
0x626912 Gogo::write_globals()
../../gcc/go/gofrontend/gogo.cc:1345
gcc version 6.0.0 2015070 (experimental) (GCC)