switch(n->op) {
default:
+ def:
regalloc(&n1, n->type, N);
cgen(n, &n1);
nodconst(&n2, n->type, 0);
goto ret;
case OLITERAL:
-// need to ask if it is bool?
+ // need to ask if it is bool?
if(!true == !n->val.u.bval)
patch(gbranch(AJMP, T), to);
goto ret;
case ONAME:
+ if(n->addable == 0)
+ goto def;
nodconst(&n1, n->type, 0);
gins(optoas(OCMP, n->type), n, &n1);
a = AJNE;
=========== bugs/bug136.go
BUG: should not compile
-=========== bugs/bug139.go
-bugs/bug139.go:7: fatal error: naddr: ONAME class x 5
-
-BUG should compile
-
=========== bugs/bug140.go
bugs/bug140.go:6: syntax error near L1
bugs/bug140.go:7: syntax error near L2