compiler: Make empty interface types for vars during parse time.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Jul 2015 19:57:22 +0000 (19:57 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Jul 2015 19:57:22 +0000 (19:57 +0000)
commitbf65976b2545c3ef1c518396273dda559903ebc5
tree920912335e30f142ac01bae36115e40490d5f0bf
parent7661d702e0d198c7e7fcbce0edeef8f2f0b1a459
compiler: Make empty interface types for vars during parse time.

    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
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/parse.cc