]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix conversion of runtime constant
authorRuss Cox <rsc@golang.org>
Wed, 28 May 2014 01:38:19 +0000 (21:38 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 28 May 2014 01:38:19 +0000 (21:38 -0400)
commit74ce581b06fc4f0de1c862604830ce312283a7db
treea7f24f2bd7673c932f3ce03a096e0fd4373095e9
parent3d1c3e1e262d8f6d7ad2be52af7d226a6fb88ccf
cmd/gc: fix conversion of runtime constant

The code cannot have worked before, because it was
trying to use the old value in a range check for the new
type, which might have a different representation
(hence the 'internal compiler error').

Fixes #8073.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/98630045
src/cmd/gc/const.c
test/fixedbugs/issue8073.go [new file with mode: 0644]