]> Cypherpunks repositories - gostls13.git/commit
gc: keep pointer to original node in constant rewrites.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 7 Dec 2011 21:18:50 +0000 (16:18 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 7 Dec 2011 21:18:50 +0000 (16:18 -0500)
commit4349effb15b5de82bfa8435c562a01c3d5c116e4
tree243f012c70899221678254e29497d743b1875a9e
parent9d52fe22b48d611adc2935e76920b430db757fd3
gc: keep pointer to original node in constant rewrites.

This allows printing meaningful expressions in error messages
instead of evaluated constants.
Fixes #2276.

R=golang-dev, rsc
CC=golang-dev, remy
https://golang.org/cl/5432082
src/cmd/gc/const.c
src/cmd/gc/unsafe.c
test/fixedbugs/bug379.go
test/fixedbugs/bug381.go [new file with mode: 0644]