https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61244
Bug ID: 61244 Summary: gccgo: ICE in write_specific_type_functions Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: dvyukov at google dot com Created attachment 32824 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32824&action=edit reproducer $ gccgo -v Using built-in specs. COLLECT_GCC=gccgo COLLECT_LTO_WRAPPER=libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../configure --enable-languages=c,c++,go --disable-bootstrap --enable-checking=yes --disable-multilib --prefix=gcc_trunk/install Thread model: posix gcc version 4.10.0 20140516 (experimental) (GCC) The reproducer program is attached. $ go build -compiler=gccgo 0.go go1: internal compiler error: in write_specific_type_functions, at go/gofrontend/types.cc:1819 0x628f2a Type::write_specific_type_functions(Gogo*, Named_type*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Function_type*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Function_type*) ../../gcc/go/gofrontend/types.cc:1819 0x6276bf Type::specific_type_functions(Gogo*, Named_type*, Function_type*, Function_type*, Named_object**, Named_object**) ../../gcc/go/gofrontend/types.cc:1798 0x627c86 Type::type_functions(Gogo*, Named_type*, Function_type*, Function_type*, Named_object**, Named_object**) ../../gcc/go/gofrontend/types.cc:1675 0x630194 Type::type_descriptor_constructor(Gogo*, int, Named_type*, Methods const*, bool) ../../gcc/go/gofrontend/types.cc:2016 0x6321f3 Array_type::array_type_descriptor(Gogo*, Named_type*) ../../gcc/go/gofrontend/types.cc:6121 0x62a5db Type::make_type_descriptor_var(Gogo*) ../../gcc/go/gofrontend/types.cc:1249 0x62a796 Type::type_descriptor_pointer(Gogo*, Location) ../../gcc/go/gofrontend/types.cc:1206 0x5bf412 Type_descriptor_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:13863 0x5bb6eb Call_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:9425 0x5a23f6 Unary_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:4039 0x607491 If_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:3200 0x5db097 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5454 0x60741c Block_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:1811 0x5db097 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5454 0x60741c Block_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:1811 0x5db097 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5454 0x60741c Block_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:1811 0x5db097 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5454 0x60741c Block_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:1811 0x5db097 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5454