From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22703 invoked by alias); 21 May 2014 14:55:51 -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 22633 invoked by uid 48); 21 May 2014 14:55:42 -0000 From: "dvyukov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/61273] New: gccgo: ICE in Unsafe_type_conversion_expression::do_get_backend [GoSmith] Date: Wed, 21 May 2014 14:55: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 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/msg01863.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61273 Bug ID: 61273 Summary: gccgo: ICE in Unsafe_type_conversion_expression::do_get_backend [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 gccgo (GCC) 4.10.0 20140516 (experimental) The program is: package main func main() { c := make(chan bool, 1) for ; false; c <- false { } } $ go build -compiler=gccgo src.go src.go:6:1: error: expected '{' } ^ src.go:4:8: error: expected type for ; false; c <- false { ^ go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:3532 0x5a21eb Unsafe_type_conversion_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:3527 0x5bb6eb Call_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:9425 0x60a1d8 Send_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:4513 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 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 gc successfully compiles the code.