return;
case OREAL:
- subnode(&n1, &n2, n->left);
- cgen(&n1, res);
- return;
-
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);
return;
}
=========== bugs/bug274.go
BUG: errchk: command succeeded unexpectedly
-
-=========== bugs/bug275.go
-bugs/bug275.go:17: internal compiler error: subnode not addable
-BUG should compile