compiler: improve recursive type detection
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 28 Jan 2019 22:36:05 +0000 (22:36 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 28 Jan 2019 22:36:05 +0000 (22:36 +0000)
commitab1be99f2b005cb5b8b0b3caac19ab2edb0dd6f3
tree9ee8260fd4a57b36069f9d59510577f1529f3f06
parent52bfbb69e7e888d8692597e649e9cedc7436083c
compiler: improve recursive type detection

    Detect recursive type definition like
    "type T0 T1; type T1 T2; ...... type Tn T0".

    Fixes golang/go#25320.

    Reviewed-on: https://go-review.googlesource.com/c/159837

From-SVN: r268347
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/types.cc