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 do_flatten (2) #12319

Closed
dvyukov opened this issue Aug 25, 2015 · 2 comments
Closed

gccgo: internal compiler error in do_flatten (2) #12319

dvyukov opened this issue Aug 25, 2015 · 2 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Aug 25, 2015

gccgo crashes on the following program:

package a
var e, v = 0, complex(e, v)
go1: internal compiler error: in do_flatten, at go/gofrontend/expressions.cc:6828
0x5eb26c Builtin_call_expression::do_flatten(Gogo*, Named_object*, Statement_inserter*)
    ../../gcc/go/gofrontend/expressions.cc:6828
0x60f3e3 Expression::flatten(Gogo*, Named_object*, Statement_inserter*)
    ../../gcc/go/gofrontend/expressions.h:813
0x60f3e3 Flatten::expression(Expression**)
    ../../gcc/go/gofrontend/gogo.cc:3899
0x611076 Gogo::flatten_expression(Named_object*, Statement_inserter*, Expression**)
    ../../gcc/go/gofrontend/gogo.cc:3926
0x61ea90 Variable::flatten_init_expression(Gogo*, Named_object*, Statement_inserter*)
    ../../gcc/go/gofrontend/gogo.cc:6071
0x61eb6b Flatten::variable(Named_object*)
    ../../gcc/go/gofrontend/gogo.cc:3815
0x615439 Bindings::traverse(Traverse*, bool)
    ../../gcc/go/gofrontend/gogo.cc:7538
0x6155c1 Gogo::traverse(Traverse*)
    ../../gcc/go/gofrontend/gogo.cc:2491
0x61581f Gogo::flatten()
    ../../gcc/go/gofrontend/gogo.cc:3933
0x60efab go_parse_input_files(char const**, unsigned int, bool, bool)
    ../../gcc/go/gofrontend/go.cc:139
0x60accf go_langhook_parse_file
    ../../gcc/go/go-lang.c:304

gofrontend is on commit 81810917af7ba19e1f9f8efc8b1989f7d6419d30

@dvyukov
Copy link
Member Author

dvyukov commented Aug 25, 2015

@ianlancetaylor

@ianlancetaylor ianlancetaylor added this to the Gccgo milestone Aug 25, 2015
@gopherbot
Copy link
Contributor

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

mydongistiny pushed a commit to mydongistiny/GCC_SaberMod that referenced this issue Sep 16, 2015
    
    Fixes golang/go#12319.
    
    Reviewed-on: https://go-review.googlesource.com/13931


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227813 138bc75d-0d04-0410-961f-82ee72b054a4
@golang golang locked and limited conversation to collaborators Sep 22, 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