From 214ec7b5477cbb44bf702014e6f036f9533ad9ee Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 2 Dec 2011 15:05:45 -0500 Subject: [PATCH] gc: fix build (not sure how this edit got lost) R=ken2, ken CC=golang-dev https://golang.org/cl/5449072 --- src/cmd/gc/go.y | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index a42a7488f76..530e54112a5 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;