Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(867)

Issue 7395054: code review 7395054: cmd/gc: fix corruption in export of &T{} literals. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by remyoudompheng
Modified:
12 years, 2 months ago
Reviewers:
CC:
golang-dev, rsc
Visibility:
Public.

Description

cmd/gc: fix corruption in export of &T{} literals. Composite literals using the &T{} form were incorrectly exported, leading to weird errors at import time. Fixes issue 4879.

Patch Set 1 #

Patch Set 2 : diff -r 5b495d0aefcf https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 5b495d0aefcf https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 37a172cbde23 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -4 lines) Patch
M src/cmd/gc/fmt.c View 1 2 3 4 chunks +6 lines, -2 lines 0 comments Download
M src/cmd/gc/typecheck.c View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
A test/fixedbugs/issue4879.go View 1 1 chunk +10 lines, -0 lines 0 comments Download
A test/fixedbugs/issue4879.dir/a.go View 1 1 chunk +33 lines, -0 lines 0 comments Download
A test/fixedbugs/issue4879.dir/b.go View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 3
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 2 months ago (2013-02-24 15:01:06 UTC) #1
rsc
LGTM I'm glad you managed to get this working. I tried and felt like I ...
12 years, 2 months ago (2013-02-25 21:55:53 UTC) #2
remyoudompheng
12 years, 2 months ago (2013-02-25 23:43:43 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=e73800eb2b00 ***

cmd/gc: fix corruption in export of &T{} literals.

Composite literals using the &T{} form were incorrectly
exported, leading to weird errors at import time.

Fixes issue 4879.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7395054
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b