This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gccgo] Adjust location of recursive interface error
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 05 Feb 2010 18:49:50 -0800
- Subject: [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)