OSDN Git Service

compiler: fix crashes.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Mar 2012 21:33:37 +0000 (21:33 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Mar 2012 21:33:37 +0000 (21:33 +0000)
commit6eef119a2df45104425835d46ba1f3952cc3eca4
tree6185cd0645b94090467a66b7c4bc41aa000d060c
parent88b6c6b482354107ba74374327825742da01eecb
compiler: fix crashes.

The compiler would crash on:
        if true || x, y := 1, 2 {}
and
        var s string
        s = append(s, "hello")

Reported in issue 3186.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@185929 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/parse.cc