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]

[gccgo] Adjust location of recursive interface error


I committed this patch to gccgo to adjust the location of a recursive
interface error.  This doesn't make a real difference, but it does
make gccgo match gc, which makes running the testsuite more
convenient.

Ian

diff -r f1e7715655d4 go/types.cc
--- a/go/types.cc	Fri Feb 05 18:32:05 2010 -0800
+++ b/go/types.cc	Fri Feb 05 18:48:15 2010 -0800
@@ -4093,7 +4093,8 @@
 	   ++q)
 	{
 	  if (q->name().empty() || this->find_method(q->name()) == NULL)
-	    this->methods_->push_back(*q);
+	    this->methods_->push_back(Typed_identifier(q->name(), q->type(),
+						       p->location()));
 	  else
 	    {
 	      if (!is_recursive)

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