From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13906 invoked by alias); 25 May 2014 07:21:05 -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 13872 invoked by uid 48); 25 May 2014 07:20:59 -0000 From: "dvyukov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/61308] New: gccgo: ICE in Expression::check_bounds [GoSmith] Date: Sun, 25 May 2014 07:21: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 cc 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/msg02145.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61308 Bug ID: 61308 Summary: gccgo: ICE in Expression::check_bounds [GoSmith] 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 CC: cmang at google dot com Created attachment 32851 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32851&action=edit reproducer gcc version 4.10.0 20140516 (experimental) (GCC) The program is attached. go build -compiler=gccgo main go1: internal compiler error: in check_bounds, at go/gofrontend/expressions.cc:480 0x5a3e71 Expression::check_bounds(Expression*, Location) ../../gcc/go/gofrontend/expressions.cc:480 0x5b89fd Array_index_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:10263 0x5aeb06 Type_conversion_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:3290 0x608076 Temporary_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:452 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 0x5dc925 Function::build(Gogo*, Named_object*) ../../gcc/go/gofrontend/gogo.cc:5062 0x5ddc57 Named_object::get_backend(Gogo*, std::vector >&, std::vector >&, std::vector >&) ../../gcc/go/gofrontend/gogo.cc:6753 0x5e2b5c Gogo::write_globals() ../../gcc/go/gofrontend/gogo.cc:1136