Commit d27e9f52 authored by Ken Thompson's avatar Ken Thompson

bug086

R=r
OCL=26090
CL=26090
parent 61815b83
...@@ -733,7 +733,6 @@ loop: ...@@ -733,7 +733,6 @@ loop:
goto nottop; goto nottop;
walktype(n->left, Erv); walktype(n->left, Erv);
implicitstar(&n->left); implicitstar(&n->left);
evconst(n);
t = n->left->type; t = n->left->type;
if(t == T) if(t == T)
goto ret; goto ret;
...@@ -741,6 +740,9 @@ loop: ...@@ -741,6 +740,9 @@ loop:
default: default:
goto badt; goto badt;
case TSTRING: case TSTRING:
if(whatis(n->left) == Wlitstr)
nodconst(n, types[TINT], n->left->val.u.sval->len);
break;
case TMAP: case TMAP:
break; break;
case TARRAY: case TARRAY:
......
...@@ -115,11 +115,6 @@ abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz ...@@ -115,11 +115,6 @@ abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz
=========== chan/nonblock.go =========== chan/nonblock.go
PASS PASS
=========== bugs/bug087.go
bugs/bug087.go:8: illegal combination of literals LEN 9
bugs/bug087.go:8: illegal combination of literals LEN 9
BUG: fails incorrectly
=========== bugs/bug108.go =========== bugs/bug108.go
bugs/bug108.go:4: stupid shift: 1025 bugs/bug108.go:4: stupid shift: 1025
BUG: errchk: command succeeded unexpectedly: 6g bugs/bug108.go BUG: errchk: command succeeded unexpectedly: 6g bugs/bug108.go
......
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