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 type_size (3) #11556

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

gccgo: internal compiler error in type_size (3) #11556

dvyukov opened this issue Jul 3, 2015 · 3 comments

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 3, 2015

gccgo crashes on the following program:

package a
type e[5][5][5][5][5][5][5][][5398986603335]e
go1: internal compiler error: in type_size, at go/go-gcc.cc:1103
0x6074fb Gcc_backend::type_size(Btype*)
    ../../gcc/go/go-gcc.cc:1103
0x671be1 Array_type::slice_gc_symbol(Gogo*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:6402
0x671f62 Type::gc_symbol(Gogo*, Type*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:1394
0x671f62 Array_type::array_gc_symbol(Gogo*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:6461
0x671f62 Type::gc_symbol(Gogo*, Type*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:1394
0x671f62 Array_type::array_gc_symbol(Gogo*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:6461
0x671f62 Type::gc_symbol(Gogo*, Type*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:1394
0x671f62 Array_type::array_gc_symbol(Gogo*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:6461
0x671f62 Type::gc_symbol(Gogo*, Type*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:1394
0x671f62 Array_type::array_gc_symbol(Gogo*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:6461
0x671f62 Type::gc_symbol(Gogo*, Type*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:1394
0x671f62 Array_type::array_gc_symbol(Gogo*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:6461
0x671f62 Type::gc_symbol(Gogo*, Type*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:1394
0x671f62 Array_type::array_gc_symbol(Gogo*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:6461
0x671f62 Type::gc_symbol(Gogo*, Type*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:1394
0x671f62 Array_type::array_gc_symbol(Gogo*, Expression_list**, Expression**, int)
    ../../gcc/go/gofrontend/types.cc:6461
0x669b1b Type::gc_symbol_constructor(Gogo*)
    ../../gcc/go/gofrontend/types.cc:2187
0x6715fb Type::make_gc_symbol_var(Gogo*)
    ../../gcc/go/gofrontend/types.cc:2119
0x6718f8 Type::gc_symbol_pointer(Gogo*)
    ../../gcc/go/gofrontend/types.cc:2076
0x5f9d29 Struct_construction_expression::do_get_backend(Translate_context*)
    ../../gcc/go/gofrontend/expressions.cc:11698

Note that this is a different stack as in #11554 and #11555

gcc version 6.0.0 2015070 (experimental) (GCC)

@dvyukov
Copy link
Member Author

dvyukov commented Jul 3, 2015

@paranoiacblack

@griesemer
Copy link
Contributor

This program should compile (but perhaps for an error that [5398986603335]e is too large.

@ianlancetaylor
Copy link
Contributor

Same as #11554 .

@golang golang locked and limited conversation to collaborators Jul 11, 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