From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16591 invoked by alias); 20 May 2014 07:13:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16545 invoked by uid 48); 20 May 2014 07:13:17 -0000 From: "dvyukov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/61244] New: gccgo: ICE in write_specific_type_functions Date: Tue, 20 May 2014 07:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dvyukov at google dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-05/txt/msg01684.txt.bz2 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, std::allocator > const&, Function_type*, std::basic_string, std::allocator > 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