Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gccgo: internal compiler error in create_tmp_var #11568

Closed
dvyukov opened this issue Jul 3, 2015 · 2 comments
Closed

gccgo: internal compiler error in create_tmp_var #11568

dvyukov opened this issue Jul 3, 2015 · 2 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 3, 2015

gccgo crashes on the following program:

package a
var f = []{print(0)}
go1: internal compiler error: in create_tmp_var, at gimple-expr.c:509
0x85c823 create_tmp_var(tree_node*, char const*)
    ../../gcc/gimple-expr.c:509
0x6083a5 Gcc_backend::temporary_variable(Bfunction*, Bblock*, Btype*, Bexpression*, bool, Location, Bstatement**)
    ../../gcc/go/go-gcc.cc:2565
0x64d4a2 Temporary_statement::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/statements.cc:478
0x61d9a7 Block::get_backend(Translate_context*)
    ../../gcc/go/gofrontend/gogo.cc:5811
0x61db53 Variable::get_init_block(Gogo*, Named_object*, Bvariable*)
    ../../gcc/go/gofrontend/gogo.cc:6375
0x626337 Gogo::write_globals()
    ../../gcc/go/gofrontend/gogo.cc:1418

gcc version 6.0.0 2015070 (experimental) (GCC)

@dvyukov
Copy link
Member Author

dvyukov commented Jul 3, 2015

@paranoiacblack

@ianlancetaylor ianlancetaylor added this to the Gccgo milestone Jul 10, 2015
@gopherbot
Copy link
Contributor

CL https://golang.org/cl/12653 mentions this issue.

vries pushed a commit to vries/gcc that referenced this issue Aug 12, 2015
    
    Fixes golang/go#11568.
    
    Reviewed-on: https://go-review.googlesource.com/12653


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226788 138bc75d-0d04-0410-961f-82ee72b054a4
@golang golang locked and limited conversation to collaborators Aug 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants