Go patch committed: Handle predeclared names as field names in literals

Ian Lance Taylor iant@google.com
Mon Mar 7 21:22:00 GMT 2011


This patch to the Go frontend fixes the case where a struct composite
literal uses a field name which happens to be a predeclared name.  The
problem was that predeclared names aren't packed as hidden names,
because the package name is not known when they are declared.  The field
names in structs are, however, packed when appropriate.  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: 3957 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110307/cbec6770/attachment.bin>


More information about the Gcc-patches mailing list