This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Go patch committed: Fix bug in importing blocks in inline functions


This Go frontend patch by Than McIntosh  fixes a buglet in the
function body importer.  It adds hooks for keeping a stack of blocks
corresponding to the block nesting in the imported function.  This
ensures that local variables and temps wind up correctly scoped and
don't introduce collisions.

There is a new test case for this problem in https://golang.org/cl/186717.

This fixes https://golang.org/issue/33158.

Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.  Committed
to mainline.

Ian

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]