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 record_var_depends_on #11543

Closed
dvyukov opened this issue Jul 2, 2015 · 1 comment
Closed

gccgo: internal compiler error in record_var_depends_on #11543

dvyukov opened this issue Jul 2, 2015 · 1 comment
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 2, 2015

gccgo crashes on the following input:

package a
var e,f,f = 0(0
go1: internal compiler error: in record_var_depends_on, at go/gofrontend/gogo.h:486
0x63aca1 Gogo::record_var_depends_on(Variable*, Named_object*)
    ../../gcc/go/gofrontend/gogo.h:486
0x63aca1 Parse::init_vars_from_call(Typed_identifier_list const*, Type*, Expression*, bool, Location)
    ../../gcc/go/gofrontend/parse.cc:1741
0x63b03f Parse::init_vars(Typed_identifier_list const*, Type*, Expression_list*, bool, Location)
    ../../gcc/go/gofrontend/parse.cc:1646
0x644647 Parse::var_spec(void*)
    ../../gcc/go/gofrontend/parse.cc:1628
0x6376e8 Parse::var_decl()
    ../../gcc/go/gofrontend/parse.cc:1588
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)

@gopherbot
Copy link

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

pbeeler pushed a commit to SaberMod/GCC_SaberMod that referenced this issue Aug 28, 2015
    
    The gofrontend would crash when trying to find the initialization
    order of a variable list where one of the listed variables was an
    invalid redefinition of another in a call statement.  This patch
    fixes initialization from call statements to consider invalid
    redefinitions before recording dependency information.
    
    Fixes golang/go#11543.
    
    Reviewed-on: https://go-review.googlesource.com/13895


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227276 138bc75d-0d04-0410-961f-82ee72b054a4
@golang golang locked and limited conversation to collaborators Sep 4, 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