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

Issue 6301059: code review 6301059: cmd/gc: fix type checking loop (Closed)

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

Description

cmd/gc: fix type checking loop CL 4313064 fixed its test case but did not address a general enough problem: type T1 struct { F *T2 } type T2 T1 type T3 T2 could still end up copying the definition of T1 for T2 before T1 was done being evaluated, or T3 before T2 was done. In order to propagate the updates correctly, record a copy of an incomplete type for re-execution once the type is completed. Roll back CL 4313064. Fixes issue 3709.

Patch Set 1 #

Patch Set 2 : diff -r 721d528a4e91 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 721d528a4e91 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 721d528a4e91 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -83 lines) Patch
M src/cmd/gc/go.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M src/cmd/gc/lex.c View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/cmd/gc/typecheck.c View 1 2 3 8 chunks +41 lines, -80 lines 0 comments Download
A test/fixedbugs/bug443.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M test/map1.go View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 3
rsc
Hello ken2 (cc: golang-dev@googlegroups.com, lstoakes), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 10 months ago (2012-06-07 07:06:38 UTC) #1
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=e69400ace361 *** cmd/gc: fix type checking loop CL 4313064 fixed its test ...
12 years, 10 months ago (2012-06-07 07:06:48 UTC) #2
ken3
12 years, 10 months ago (2012-06-07 08:17:32 UTC) #3
lgtm
Sign in to reply to this message.

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