Go patch committed: Don't crash ranging over call to builtin function

Ian Lance Taylor iant@google.com
Wed May 11 22:20:00 GMT 2011


This patch to the Go frontend fixes a compiler crash for code like
	for i, v := range append(a, b...) {
	}
The problem is that for a case like this there are multiple pointers to
the call expression, which interacts poorly with lowering in which the
call expression is replaced.  This patch papers over the problem.  It's
not a particularly clean fix but I can't think of any way that it will
actually fail.  The patch also includes a couple of minor cleanups.
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: 1731 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110511/e8331048/attachment.bin>


More information about the Gcc-patches mailing list