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_export #12321

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

gccgo: internal compiler error: in do_export #12321

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

Comments

@dvyukov
Copy link
Member

dvyukov commented Aug 25, 2015

gccgo crashes on the following program:

package a
const A = <-0
go1: internal compiler error: in do_export, at go/gofrontend/types.cc:2561
0x65a3d7 Type::do_export(Export*) const
    ../../gcc/go/gofrontend/types.cc:2561
0x5d6e1f Type::export_type(Export*) const
    ../../gcc/go/gofrontend/types.h:980
0x5d6e1f Export::write_type(Type const*)
    ../../gcc/go/gofrontend/export.cc:431
0x613a1c Named_constant::export_const(Export*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const
    ../../gcc/go/gofrontend/gogo.cc:6631
0x614e84 Named_object::export_named_object(Export*) const
    ../../gcc/go/gofrontend/gogo.cc:7016
0x5d820f Export::export_globals(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Package*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Package*> > > const&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Package*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Package*> > > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::set<Import_init, std::less<Import_init>, std::allocator<Import_init> > const&, Bindings const*)
    ../../gcc/go/gofrontend/export.cc:178
0x611273 Gogo::do_exports()
    ../../gcc/go/gofrontend/gogo.cc:4521
0x60ef57 go_parse_input_files(char const**, unsigned int, bool, bool)
    ../../gcc/go/gofrontend/go.cc:118
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/13984 mentions this issue.

@ianlancetaylor
Copy link
Contributor

This no longer crashes on tip.

foo.go:2:11: error: expected channel
 const A = <-0
           ^

@golang golang locked and limited conversation to collaborators Feb 5, 2019
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