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_get_backend #11560

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

gccgo: internal compiler error in do_get_backend #11560

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

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 3, 2015

gccgo crashes on the following input:

package a
type p[[]{}]p
go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:3327
0x5f1272 Type_conversion_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:3327
0x5f9d29 Struct_construction_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:11698
0x671324 Type::make_type_descriptor_var(Gogo*)
    ../../gcc/go/gofrontend/types.cc:1267
0x6714f6 Type::type_descriptor_pointer(Gogo*, Location)
    ../../gcc/go/gofrontend/types.cc:1156
0x6207ad 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:7110
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 3, 2015

@paranoiacblack

@gopherbot
Copy link
Contributor

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

KangDroid pushed a commit to KangDroid/gcc that referenced this issue Aug 3, 2015
    
    There is no need to make type descriptors for named types when there
    are errors during package compilation.  Particularly, if the error in
    package compilation is from a malformed named type, there is no
    guarantee a type descriptor can be created.
    
    Fixes golang/go#11560.
    
    Reviewed-on: https://go-review.googlesource.com/12792


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226527 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
    
    There is no need to make type descriptors for named types when there
    are errors during package compilation.  Particularly, if the error in
    package compilation is from a malformed named type, there is no
    guarantee a type descriptor can be created.
    
    Fixes golang/go#11560.
    
    Reviewed-on: https://go-review.googlesource.com/12792

From-SVN: r226527
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