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 test for invalid type in anonymous field


This patch fixes the test for an anonymous field with an invalid type to
handle pointers.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

diff -r 00e1f21bd95f go/types.cc
--- a/go/types.cc	Wed Dec 15 14:06:51 2010 -0800
+++ b/go/types.cc	Wed Dec 15 14:26:33 2010 -0800
@@ -7564,7 +7564,7 @@
 			   const std::string& name,
 			   source_location location)
 {
-  if (type->is_error_type())
+  if (type->deref()->is_error_type())
     return Expression::make_error(location);
 
   const Named_type* nt = type->named_type();

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