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

Issue 129550043: code review 129550043: cmd/gc: disallow call of *T method using **T variable (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by rsc
Modified:
10 years, 4 months ago
Reviewers:
r, gobot
CC:
golang-codereviews, r, adonovan, gri
Visibility:
Public.

Description

cmd/gc: disallow call of *T method using **T variable This brings cmd/gc in line with the spec on this question. It might break existing code, but that code was not conformant with the spec. Credit to Rémy for finding the broken code. Fixes issue 6366.

Patch Set 1 #

Patch Set 2 : diff -r cf7fe9f1fd36a651dfebb1472fcc95e9b87e5a87 https://code.google.com/p/go/ #

Patch Set 3 : diff -r cf7fe9f1fd36a651dfebb1472fcc95e9b87e5a87 https://code.google.com/p/go/ #

Patch Set 4 : diff -r c31876cc01e949e1be6f707f51b980d3963a28b7 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M src/cmd/gc/typecheck.c View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M test/fixedbugs/bug371.go View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4
rsc
Hello golang-codereviews@googlegroups.com (cc: adonovan, gri), I'd like you to review this change to https://code.google.com/p/go/
10 years, 6 months ago (2014-08-25 01:00:34 UTC) #1
r
LGTM
10 years, 6 months ago (2014-08-26 17:51:16 UTC) #2
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=440c1cc9f5d6 *** cmd/gc: disallow call of *T method using **T variable This ...
10 years, 4 months ago (2014-10-21 02:04:20 UTC) #3
gobot
10 years, 4 months ago (2014-10-21 02:52:44 UTC) #4
Message was sent while issue was closed.
This changed caused perf changes on linux-amd64-perf:


build-1                   old          new      delta
build-cputime     10220638000  10124632000      -0.94

build-2                   old          new      delta
build-cputime     10280641000  10188636000      -0.89

build-8                   old          new      delta
build-cputime     10420651000  10348646000      -0.69

http://build.golang.org/perfdetail?commit=440c1cc9f5d6c5a00b038889476a5e2f6bf...



—gobot
Sign in to reply to this message.

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