Skip to content

gccgo: internal compiler error in do_get_backend #11560

Description

@dvyukov

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions