compiler: track placeholder pointer types for conversion
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 28 Jul 2017 18:03:29 +0000 (18:03 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 28 Jul 2017 18:03:29 +0000 (18:03 +0000)
commit9761988fc78d16fe36fbb7f000c6b55e7fa83787
tree331c793014022b2db3215daf49ba805b42c7133f
parent97a0928c524753bcebed187fb087862705fcdda3
compiler: track placeholder pointer types for conversion

    We recently started walking through the hash table of pointer types to
    finalize them.  Unfortunately it is possible to create a new pointer
    type while finalizing an existing one (test case: test/fixedbugs/issue5291)
    and that breaks the iteration.  So, instead, keep a list of
    placeholder pointer types, and iterate through them while permitting
    the list to be extended as we go.

    Reviewed-on: https://go-review.googlesource.com/51771

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