diff --git a/src/cmd/compile/internal/gc/lex.go b/src/cmd/compile/internal/gc/lex.go index c37befdafb3..cd964ff19ba 100644 --- a/src/cmd/compile/internal/gc/lex.go +++ b/src/cmd/compile/internal/gc/lex.go @@ -1535,7 +1535,7 @@ casei: mpatoflt(&yylval.val.U.(*Mpcplx).Imag, str) if yylval.val.U.(*Mpcplx).Imag.Val.IsInf() { Yyerror("overflow in imaginary constant") - Mpmovecflt(&yylval.val.U.(*Mpcplx).Real, 0.0) + Mpmovecflt(&yylval.val.U.(*Mpcplx).Imag, 0.0) } if Debug['x'] != 0 {