Commit b5f54db3 authored by Russ Cox's avatar Russ Cox

gc: bug267

R=ken2
CC=golang-dev
https://golang.org/cl/1067042
parent 371b77ad
...@@ -797,6 +797,7 @@ l0: ...@@ -797,6 +797,7 @@ l0:
* i said it was clumsy. * i said it was clumsy.
*/ */
case '(': case '(':
case '[':
if(loophack || lstk != nil) { if(loophack || lstk != nil) {
h = malloc(sizeof *h); h = malloc(sizeof *h);
h->v = loophack; h->v = loophack;
...@@ -806,6 +807,7 @@ l0: ...@@ -806,6 +807,7 @@ l0:
} }
goto lx; goto lx;
case ')': case ')':
case ']':
if(lstk != nil) { if(lstk != nil) {
h = lstk; h = lstk;
loophack = h->v; loophack = h->v;
......
...@@ -185,7 +185,3 @@ panic: barCount != 1 ...@@ -185,7 +185,3 @@ panic: barCount != 1
panic PC=xxx panic PC=xxx
BUG BUG
=========== bugs/bug267.go
bugs/bug267.go:14: syntax error: unexpected {, expecting :
BUG
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