Go patch committed: Don't crash on self-referential initializer

Ian Lance Taylor iant@google.com
Tue Feb 15 19:39:00 GMT 2011


This patch to the Go frontend avoids a crash when a variable initializer
erroneously refers to the variable itself.  We already avoided many such
crashes, but not in cases where lowering the initializer changes the
initializer itself.  This patch fixes cases like that.  Bootstrapped and
ran Go testsuite on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 1164 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110215/d49a61ac/attachment.bin>


More information about the Gcc-patches mailing list