Commit a1b64821 authored by Russ Cox's avatar Russ Cox

bug167

R=ken
OCL=31295
CL=31295
parent 80e4a053
...@@ -104,7 +104,7 @@ void ...@@ -104,7 +104,7 @@ void
updatetype(Type *n, Type *t) updatetype(Type *n, Type *t)
{ {
Sym *s; Sym *s;
int local; int local, vargen;
int maplineno, lno, etype; int maplineno, lno, etype;
s = n->sym; s = n->sym;
...@@ -141,13 +141,14 @@ updatetype(Type *n, Type *t) ...@@ -141,13 +141,14 @@ updatetype(Type *n, Type *t)
// that is no longer associated with n. // that is no longer associated with n.
maplineno = n->maplineno; maplineno = n->maplineno;
local = n->local; local = n->local;
vargen = n->vargen;
*n = *t; *n = *t;
n->sym = s; n->sym = s;
n->local = local; n->local = local;
n->siggen = 0; n->siggen = 0;
n->printed = 0; n->printed = 0;
n->method = nil; n->method = nil;
n->vargen = 0; n->vargen = vargen;
n->nod = N; n->nod = N;
// catch declaration of incomplete type // catch declaration of incomplete type
......
...@@ -200,7 +200,7 @@ loadpkgdata(char *file, char *data, int len) ...@@ -200,7 +200,7 @@ loadpkgdata(char *file, char *data, int len)
} else if((ndef = forwardfix(x->def, def)) != nil) { } else if((ndef = forwardfix(x->def, def)) != nil) {
x->def = ndef; x->def = ndef;
} else { } else {
fprint(2, "%d: conflicting definitions for %s\n", argv0, name); fprint(2, "%s: conflicting definitions for %s\n", argv0, name);
fprint(2, "%s:\t%s %s %s\n", x->file, x->prefix, name, x->def); fprint(2, "%s:\t%s %s %s\n", x->file, x->prefix, name, x->def);
fprint(2, "%s:\t%s %s %s\n", file, prefix, name, def); fprint(2, "%s:\t%s %s %s\n", file, prefix, name, def);
nerrors++; nerrors++;
......
...@@ -105,12 +105,6 @@ BUG: bug159 ...@@ -105,12 +105,6 @@ BUG: bug159
123 123
BUG: should fail BUG: should fail
=========== bugs/bug167.go
BUG: bug167
1606416656: conflicting definitions for main.T·bug167
bug167.6: type main.T·bug167 struct { x int }
bug167.6: type main.T·bug167 struct { x float }
=========== fixedbugs/bug016.go =========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: constant -3 overflows uint fixedbugs/bug016.go:7: constant -3 overflows uint
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment