compiler: Don't record dependencies of invalid redefinitions.
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 27 Aug 2015 19:06:59 +0000 (19:06 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 27 Aug 2015 19:06:59 +0000 (19:06 +0000)
commit31da952a49ef2861ee35786a3e41865ac259599c
tree0d00f5f3ee3e684213177e8eb0fba4954e1b391b
parenta5e5ea0c074caec82857a5f62173e161ee6b1615
compiler: Don't record dependencies of invalid redefinitions.

    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

From-SVN: r227276
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/parse.cc