From: Russ Cox Date: Fri, 2 Dec 2011 20:05:45 +0000 (-0500) Subject: gc: fix build (not sure how this edit got lost) X-Git-Tag: weekly.2011-12-06~33 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=214ec7b5477cbb44bf702014e6f036f9533ad9ee;p=gostls13.git gc: fix build (not sure how this edit got lost) R=ken2, ken CC=golang-dev https://golang.org/cl/5449072 --- diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index a42a7488f7..530e54112a 100644 --- a/src/cmd/gc/go.y +++ b/src/cmd/gc/go.y @@ -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;