1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:57:58 -07:00

fix bug 275

R=rsc
CC=golang-dev
https://golang.org/cl/1198046
This commit is contained in:
Ken Thompson 2010-05-20 20:56:28 -07:00
parent 9e497c3656
commit 09b2de77b5
2 changed files with 11 additions and 9 deletions

View File

@ -129,12 +129,18 @@ complexgen(Node *n, Node *res)
return; return;
case OREAL: case OREAL:
subnode(&n1, &n2, n->left);
cgen(&n1, res);
return;
case OIMAG: case OIMAG:
subnode(&n1, &n2, n->left); nl = n->left;
if(!nl->addable) {
tempname(&tmp, nl->type);
complexgen(nl, &tmp);
nl = &tmp;
}
subnode(&n1, &n2, nl);
if(n->op == OREAL) {
cgen(&n1, res);
return;
}
cgen(&n2, res); cgen(&n2, res);
return; return;
} }

View File

@ -180,7 +180,3 @@ BUG: bug260 failed
=========== bugs/bug274.go =========== bugs/bug274.go
BUG: errchk: command succeeded unexpectedly BUG: errchk: command succeeded unexpectedly
=========== bugs/bug275.go
bugs/bug275.go:17: internal compiler error: subnode not addable
BUG should compile