]> Cypherpunks repositories - gostls13.git/commitdiff
gc: fix build (not sure how this edit got lost)
authorRuss Cox <rsc@golang.org>
Fri, 2 Dec 2011 20:05:45 +0000 (15:05 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 2 Dec 2011 20:05:45 +0000 (15:05 -0500)
R=ken2, ken
CC=golang-dev
https://golang.org/cl/5449072

src/cmd/gc/go.y

index a42a7488f76d8a072a5ae0d1b2d87a78ec8f82c5..530e54112a5f108ecd9f6dd48e288874f8c312eb 100644 (file)
@@ -915,6 +915,7 @@ pexpr_no_paren:
        }
 |      '(' expr_or_type ')' '{' start_complit braced_keyval_list '}'
        {
+               yyerror("cannot parenthesize type in composite literal");
                $$ = $5;
                $$->right = $2;
                $$->list = $6;