gc: keep pointer to original node in constant rewrites.
This allows printing meaningful expressions in error messages
instead of evaluated constants.
Fixes issue 2276.
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, remy@archlinux.org), I'd like you to review this change to https://go.googlecode.com/hg/
On 2011/11/26 11:57:00, remyoudompheng wrote:
> Hello mailto:golang-dev@googlegroups.com (cc:
mailto:golang-dev@googlegroups.com,
> mailto:remy@archlinux.org),
>
> Please take another look.
Sorry for the spam, I wanted to add another file test/fixedbugs/bug378.go but I
don't understand how to do it with Mercurial.
Rémy.
On 2011/11/28 18:31:08, rsc wrote:
> This looks fine, but I expected the error for bug379.go
> to now say "1+2 not used", but it still says "3 not used".
>
> Russ
The "3" instead of "1+2" comes from evconst() in const.c. I have prepared a
patch for the "1+2" too, do you want me to merge it with this CL? I would have
to edit the description.
Rémy.
On 2011/11/28 21:27:23, remyoudompheng wrote:
> Hello mailto:golang-dev@googlegroups.com, mailto:rsc@golang.org (cc:
> mailto:golang-dev@googlegroups.com, mailto:remy@archlinux.org),
>
> Please take another look.
Did you have time to take a look?
Thanks,
Rémy.
LGTM
Thanks very much.
I think that in the ERROR prints you should use
[+] and [.] instead of \+ and \. but I do not
remember why. It may have something to do
with the gccgo test suite.
Issue 5432082: code review 5432082: gc: keep pointer to original node in constant rewrites.
(Closed)
Created 14 years ago by remyoudompheng
Modified 14 years ago
Reviewers:
Base URL:
Comments: 0