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 #11592

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

gccgo: internal compiler error in do_flatten #11592

dvyukov opened this issue Jul 4, 2015 · 2 comments
Labels
FrozenDueToAge Suggested Issues that may be good for new contributors looking for work to do.
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 4, 2015

gccgo crashes on the following input:

package a
var e = *<--chan*e
go1: internal compiler error: in do_flatten, at go/gofrontend/expressions.cc:3652
0x5e054f Unary_expression::do_flatten(Gogo*, Named_object*, Statement_inserter*)
    ../../gcc/go/gofrontend/expressions.cc:3652
0x610a13 Expression::flatten(Gogo*, Named_object*, Statement_inserter*)
    ../../gcc/go/gofrontend/expressions.h:803
0x610a13 Flatten::expression(Expression**)
    ../../gcc/go/gofrontend/gogo.cc:3866
0x6126a6 Gogo::flatten_expression(Named_object*, Statement_inserter*, Expression**)
    ../../gcc/go/gofrontend/gogo.cc:3893
0x61fec0 Variable::flatten_init_expression(Gogo*, Named_object*, Statement_inserter*)
    ../../gcc/go/gofrontend/gogo.cc:6020
0x61ff9b Flatten::variable(Named_object*)
    ../../gcc/go/gofrontend/gogo.cc:3782
0x6169e9 Bindings::traverse(Traverse*, bool)
    ../../gcc/go/gofrontend/gogo.cc:7493
0x616b71 Gogo::traverse(Traverse*)
    ../../gcc/go/gofrontend/gogo.cc:2491
0x616dcf Gogo::flatten()
    ../../gcc/go/gofrontend/gogo.cc:3900
0x6105db go_parse_input_files(char const**, unsigned int, bool, bool)
    ../../gcc/go/gofrontend/go.cc:139
0x60c32f go_langhook_parse_file
    ../../gcc/go/go-lang.c:304

gcc version 6.0.0 2015070 (experimental) (GCC)

@dvyukov
Copy link
Member Author

dvyukov commented Jul 4, 2015

@paranoiacblack

@paranoiacblack paranoiacblack added this to the Gccgo milestone Jul 9, 2015
@paranoiacblack paranoiacblack added Started Suggested Issues that may be good for new contributors looking for work to do. labels Jul 9, 2015
@gopherbot
Copy link
Contributor

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

vries pushed a commit to vries/gcc that referenced this issue Jul 24, 2015
…ons.

    
    Fixes golang/go#11592.
    
    Reviewed-on: https://go-review.googlesource.com/12044


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226122 138bc75d-0d04-0410-961f-82ee72b054a4
@golang golang locked and limited conversation to collaborators Aug 5, 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.
Labels
FrozenDueToAge Suggested Issues that may be good for new contributors looking for work to do.
Projects
None yet
Development

No branches or pull requests

4 participants