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

Issue 6996054: code review 6996054: cmd/gc: make forward declaration in pure Go package an error (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:
remyoudompheng
CC:
ken2, golang-dev
Visibility:
Public.

Description

cmd/gc: make forward declaration in pure Go package an error An error during the compilation can be more precise than an error at link time. For 'func init', the error happens always: you can't forward declare an init func because the name gets mangled. For other funcs, the error happens only with the special (and never used by hand) -= flag, which tells 6g the package is pure go. The go command now passes -= for pure Go packages. Fixes issue 3705.

Patch Set 1 #

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -7 lines) Patch
M doc/progs/error.go View 1 1 chunk +5 lines, -1 line 0 comments Download
M src/cmd/gc/go.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/gc/lex.c View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/cmd/gc/pgen.c View 1 1 chunk +7 lines, -4 lines 0 comments Download
M src/cmd/go/build.go View 1 2 chunks +17 lines, -0 lines 1 comment Download

Messages

Total messages: 4
rsc
Hello ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 10 months ago (2012-12-22 21:46:29 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=bf60b2c842b6 *** cmd/gc: make forward declaration in pure Go package an error ...
12 years, 10 months ago (2012-12-22 21:47:07 UTC) #2
remyoudompheng
https://codereview.appspot.com/6996054/diff/2001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/6996054/diff/2001/src/cmd/go/build.go#newcode1314 src/cmd/go/build.go:1314: var rsc = flag.Bool("rsc", false, "rsc") Did you really ...
12 years, 10 months ago (2012-12-22 21:48:59 UTC) #3
rsc
12 years, 10 months ago (2012-12-22 21:58:06 UTC) #4
no, sorry. will send you a CL.
Sign in to reply to this message.

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