Go patch committed: Don't crash when copying function without closure

Ian Lance Taylor iant@google.com
Tue Dec 21 23:34:00 GMT 2010


A bug in the Go frontend caused it to crash when copying a function
expression if the function had no closure.  I'm not sure this ever
happens for valid code, but it can happen for invalid code.  This patch
fixes it in the obvious way.  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: 402 bytes
Desc: crash
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101221/f525a6d1/attachment.bin>


More information about the Gcc-patches mailing list