Go patch committed: clean up handling of undefined types

Ian Lance Taylor iant@google.com
Fri Mar 25 22:52:00 GMT 2011


While parsing, the Go frontend has to not consider an undefined type to
be an error, since it might be defined later.  After parsing is
complete, an undefined type is an error in most cases, except perhaps
for a reference to an imported variable that is not actually used.  This
patch tries to clean up the handling of undefined types by treating them
as error types when they have to be defined.  The main effect of this
change in practice is to avoid additional error messages.  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: 14612 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110325/b7f1b4ca/attachment.bin>


More information about the Gcc-patches mailing list