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 check_bounds #11545

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

gccgo: internal compiler error in check_bounds #11545

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

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 2, 2015

gccgo crashes on the following input:

package a
var g = "0"[0i]
go1: internal compiler error: in check_bounds, at go/gofrontend/expressions.cc:486
0x5e5b99 Expression::check_bounds(Expression*, Location)
    ../../gcc/go/gofrontend/expressions.cc:486
0x5e6def String_index_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:10352
0x5f0d56 Type_conversion_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:3256
0x61db91 Variable::get_init_block(Gogo*, Named_object*, Bvariable*)
    ../../gcc/go/gofrontend/gogo.cc:6392
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 2, 2015

@paranoiacblack

@gopherbot
Copy link
Contributor

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

@golang golang locked and limited conversation to collaborators Sep 28, 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