]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: remove node printing in redeclare errors
authorDaniel Morsing <daniel.morsing@gmail.com>
Thu, 14 Feb 2013 20:11:47 +0000 (21:11 +0100)
committerDaniel Morsing <daniel.morsing@gmail.com>
Thu, 14 Feb 2013 20:11:47 +0000 (21:11 +0100)
I suspect this is some debugging which got through the submission process.

Fixes #4789.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7310079

src/cmd/gc/dcl.c

index 20b0ab904fcd900329e17fccae7a6ba967d6b63d..b2fefb18c86632272cfbe8dea47de8f4e4a9b657 100644 (file)
@@ -171,9 +171,9 @@ redeclare(Sym *s, char *where)
                        line1 = s->lastlineno;
                }
 
-               yyerrorl(line1, "%S redeclared %s (%#N)\n"
+               yyerrorl(line1, "%S redeclared %s\n"
                        "\tprevious declaration at %L",
-                       s, where, s->def, line2);
+                       s, where, line2);
        }
 }