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 insert #12616

Closed
dvyukov opened this issue Sep 14, 2015 · 2 comments
Closed

gccgo: internal compiler error in insert #12616

dvyukov opened this issue Sep 14, 2015 · 2 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Sep 14, 2015

gccgo crashes on the following program:

package a
const c = 0<<false
go1: internal compiler error: in insert, at go/gofrontend/gogo.cc:7955
0x61ff44 Statement_inserter::insert(Statement*)
    ../../gcc/go/gofrontend/gogo.cc:7955
0x5deead Binary_expression::do_flatten(Gogo*, Named_object*, Statement_inserter*)
    ../../gcc/go/gofrontend/expressions.cc:5172
0x610913 Expression::flatten(Gogo*, Named_object*, Statement_inserter*)
    ../../gcc/go/gofrontend/expressions.h:813
0x610913 Flatten::expression(Expression**)
    ../../gcc/go/gofrontend/gogo.cc:3904
0x5e209d Expression::traverse(Expression**, Traverse*)
    ../../gcc/go/gofrontend/expressions.cc:43
0x616991 Named_constant::traverse_expression(Traverse*)
    ../../gcc/go/gofrontend/gogo.cc:6594
0x616991 Bindings::traverse(Traverse*, bool)
    ../../gcc/go/gofrontend/gogo.cc:7539
0x616b51 Gogo::traverse(Traverse*)
    ../../gcc/go/gofrontend/gogo.cc:2495
0x616daf Gogo::flatten()
    ../../gcc/go/gofrontend/gogo.cc:3938
0x6104db go_parse_input_files(char const**, unsigned int, bool, bool)
    ../../gcc/go/gofrontend/go.cc:139
0x60c20f go_langhook_parse_file
    ../../gcc/go/go-lang.c:304

gofrontend is on commit 1d9d92ab09996d2f7795481d2876a21194502b89

@dvyukov
Copy link
Member Author

dvyukov commented Sep 14, 2015

@ianlancetaylor

@ianlancetaylor ianlancetaylor added this to the Gccgo milestone Sep 14, 2015
@gopherbot
Copy link
Contributor

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

vries pushed a commit to vries/gcc that referenced this issue Oct 7, 2015
    
    Fixes golang/go#12616.
    
    Reviewed-on: https://go-review.googlesource.com/14645


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228578 138bc75d-0d04-0410-961f-82ee72b054a4
@golang golang locked and limited conversation to collaborators Oct 9, 2016
asiekierka pushed a commit to WonderfulToolchain/gcc-ia16 that referenced this issue May 16, 2022
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