]> Cypherpunks repositories - gostls13.git/commitdiff
gc: bug267
authorRuss Cox <rsc@golang.org>
Mon, 3 May 2010 22:29:59 +0000 (15:29 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 3 May 2010 22:29:59 +0000 (15:29 -0700)
R=ken2
CC=golang-dev
https://golang.org/cl/1067042

src/cmd/gc/lex.c
test/fixedbugs/bug267.go [moved from test/bugs/bug267.go with 100% similarity]
test/golden.out

index 7424f69671e7a72b6bb478685bbdfea9ea483b0a..48c200ccea77d7049d55853c8bb07d7acfdb8cd2 100644 (file)
@@ -797,6 +797,7 @@ l0:
         * i said it was clumsy.
         */
        case '(':
+       case '[':
                if(loophack || lstk != nil) {
                        h = malloc(sizeof *h);
                        h->v = loophack;
@@ -806,6 +807,7 @@ l0:
                }
                goto lx;
        case ')':
+       case ']':
                if(lstk != nil) {
                        h = lstk;
                        loophack = h->v;
similarity index 100%
rename from test/bugs/bug267.go
rename to test/fixedbugs/bug267.go
index 3a9039fc5ebc19d7712dd7cffb42a7a53605f049..e0b6ad6242a72ccfcde4993f0dfe01413c353db9 100644 (file)
@@ -185,7 +185,3 @@ panic: barCount != 1
 
 panic PC=xxx
 BUG
-
-=========== bugs/bug267.go
-bugs/bug267.go:14: syntax error: unexpected {, expecting :
-BUG