Skip to content

gccgo: internal compiler error in declare_function #11557

Closed
@dvyukov

Description

gccgo crashes on the following input:

package a
func(func())a(int)
go1: internal compiler error: in declare_function, at go/gofrontend/gogo.cc:1930
0x622169 Gogo::declare_function(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Function_type*, Location)
    ../../gcc/go/gofrontend/gogo.cc:1930
0x647d98 Parse::function_decl(bool)
    ../../gcc/go/gofrontend/parse.cc:2306
0x648523 Parse::program()
    ../../gcc/go/gofrontend/parse.cc:5667
0x610411 go_parse_input_files(char const**, unsigned int, bool, bool)
    ../../gcc/go/gofrontend/go.cc:73
0x60c32f go_langhook_parse_file
    ../../gcc/go/go-lang.c:304

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

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions