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 methods #11579

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

gccgo: internal compiler error in methods #11579

dvyukov opened this issue Jul 3, 2015 · 2 comments
Labels
FrozenDueToAge Suggested Issues that may be good for new contributors looking for work to do.
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 3, 2015

gccgo crashes on the following program:

package a
var _ interface{}
go1: internal compiler error: in methods, at go/gofrontend/types.cc:7076
0x851f41 Interface_type::methods() const
    ../../gcc/go/gofrontend/types.cc:7076
0x7a31eb Gogo::build_interface_method_tables()
    ../../gcc/go/gofrontend/gogo.cc:4316
0x7c68f6 Gogo::build_interface_method_tables()
    ../../gcc/go/gofrontend/gogo.cc:1301
0x7c68f6 Gogo::write_globals()
    ../../gcc/go/gofrontend/gogo.cc:1272

gcc version 6.0.0 2015070 (experimental) (GCC)

@dvyukov
Copy link
Member Author

dvyukov commented Jul 3, 2015

@paranoiacblack

@ianlancetaylor ianlancetaylor added this to the Gccgo milestone Jul 10, 2015
@paranoiacblack paranoiacblack added Suggested Issues that may be good for new contributors looking for work to do. Started labels Jul 10, 2015
@gopherbot
Copy link
Contributor

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

vries pushed a commit to vries/gcc that referenced this issue Jul 24, 2015
    
    When making the type for a variable with an empty interface type,
    the parser makes an interface type with a NULL method set and relies
    on later passes to correct this.
    
    For sink variables, which are ignored in later passes, the interface
    method table is never finalized and a compile time assertion is issued.
    Instead, the initial type generated by the parser should be the empty
    interface type.
    
    Fixes golang/go#11579.
    
    Reviewed-on: https://go-review.googlesource.com/12049


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226123 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
    
    When making the type for a variable with an empty interface type,
    the parser makes an interface type with a NULL method set and relies
    on later passes to correct this.
    
    For sink variables, which are ignored in later passes, the interface
    method table is never finalized and a compile time assertion is issued.
    Instead, the initial type generated by the parser should be the empty
    interface type.
    
    Fixes golang/go#11579.
    
    Reviewed-on: https://go-review.googlesource.com/12049

From-SVN: r226123
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Suggested Issues that may be good for new contributors looking for work to do.
Projects
None yet
Development

No branches or pull requests

4 participants