]> Cypherpunks repositories - gostls13.git/commit
gc: don't inherit orig from subnodes in constant expression nodes.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 28 Nov 2011 17:22:15 +0000 (12:22 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 28 Nov 2011 17:22:15 +0000 (12:22 -0500)
commit60e4a61d307c0e6c32d1933fbf14cf59193349ab
tree3accb64ea8a173c654715d2ff52415518219dada
parentce7e11997b9706aa3e0c2aa284470b8e8c11b86c
gc: don't inherit orig from subnodes in constant expression nodes.

The wrong value made Nconv() show "1" for node "-1", and "2" from
node "2+3".
Fixes #2452.

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