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 (3) #12320

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

gccgo: internal compiler error in do_flatten (3) #12320

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
func f() {
    _, _ = <-chan int(n)
}
go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:3450
0x5e2224 Unsafe_type_conversion_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:3450
0x5fb6ca Call_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:9299
0x64de42 Temporary_statement::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/statements.cc:487
0x61c5b7 Block::get_backend(Translate_context*)
    ../../gcc/go/gofrontend/gogo.cc:5862
0x64b65c Block_statement::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/statements.cc:1836
0x61c5b7 Block::get_backend(Translate_context*)
    ../../gcc/go/gofrontend/gogo.cc:5862
0x61ddac Function::build(Gogo*, Named_object*)
    ../../gcc/go/gofrontend/gogo.cc:5468
0x61f2c7 Named_object::get_backend(Gogo*, std::vector<Bexpression*, std::allocator<Bexpression*> >&, std::vector<Btype*, std::allocator<Btype*> >&, std::vector<Bfunction*, std::allocator<Bfunction*> >&)
    ../../gcc/go/gofrontend/gogo.cc:7187
0x625532 Gogo::write_globals()
    ../../gcc/go/gofrontend/gogo.cc:1345

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/13932 mentions this issue.

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