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 backend_numeric_constant_expression #11548

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

gccgo: internal compiler error in backend_numeric_constant_expression #11548

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 program:

package a
const (
    d rune=0^V
    (=0
    V
)
go1: internal compiler error: in backend_numeric_constant_expression, at go/gofrontend/expressions.cc:460
0x5f2093 Expression::backend_numeric_constant_expression(Translate_context*, Numeric_constant*)
    ../../gcc/go/gofrontend/expressions.cc:460
0x5f2311 Integer_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:1953
0x5f431d Const_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:2864
0x619571 Named_constant::get_backend(Gogo*, Named_object*)
    ../../gcc/go/gofrontend/gogo.cc:6621
0x620726 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:7091
0x626912 Gogo::write_globals()
    ../../gcc/go/gofrontend/gogo.cc:1345

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

@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