From: Russ Cox Date: Wed, 7 Jan 2009 20:39:48 +0000 (-0800) Subject: iscomposite test in OCONV is unnecessary X-Git-Tag: weekly.2009-11-06~2421 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=855495eab6dd0ebe5e8682d99ccf6817d5e1a774;p=gostls13.git iscomposite test in OCONV is unnecessary now that OCOMP exists R=ken OCL=22216 CL=22216 --- diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index ffaad5d89b..d3a88ea9b1 100644 --- a/src/cmd/gc/go.y +++ b/src/cmd/gc/go.y @@ -878,8 +878,6 @@ pexpr: { $$ = nod(OCONV, $3, N); $$->type = oldtype($1); - if(iscomposite($$->type)) - yyerror("illegal conversion type %T", $$->type); } | convtype '{' braced_keyexpr_list '}' {