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

Issue 5336041: code review 5336041: cgo: print error instead of panic on undeclared enums/s... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by remyoudompheng
Modified:
13 years, 4 months ago
Reviewers:
CC:
rsc, golang-dev, remy_archlinux.org
Visibility:
Public.

Description

cgo: print error instead of panic on undeclared enums/structs Types are left as nil if no DWARF information is found and checking in the rewriting pass so that appropriate errors with line numbers can be printed. Fixes issue 2408.

Patch Set 1 #

Patch Set 2 : diff -r 64a7c82147a0 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 64a7c82147a0 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 4 : diff -r 84def2047f20 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 84def2047f20 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M src/cmd/cgo/gcc.go View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 10
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, remy@archlinux.org), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 5 months ago (2011-11-01 08:42:25 UTC) #1
remyoudompheng
On 2011/11/01 08:42:25, remyoudompheng wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:golang-dev@googlegroups.com, > mailto:remy@archlinux.org), > > I'd ...
13 years, 5 months ago (2011-11-03 19:19:07 UTC) #2
rsc
This is good, thanks. Could you also add a comment just above the new error ...
13 years, 5 months ago (2011-11-03 21:24:59 UTC) #3
remyoudompheng
Hello rsc@golang.org (cc: golang-dev@googlegroups.com, remy@archlinux.org), Please take another look.
13 years, 4 months ago (2011-11-04 22:23:18 UTC) #4
remyoudompheng
Sorry, I thought hg mail would prompt me after complaining gofmt had not been run.
13 years, 4 months ago (2011-11-04 22:25:27 UTC) #5
remyoudompheng
Hello rsc@golang.org (cc: golang-dev@googlegroups.com, remy@archlinux.org), Please take another look.
13 years, 4 months ago (2011-11-04 22:26:27 UTC) #6
rsc
Thanks for fixing this. Please complete a CLA as described at http://golang.org/doc/contribute.html#copyright Thanks. Russ
13 years, 4 months ago (2011-11-07 16:44:27 UTC) #7
remyoudompheng
On 2011/11/07 16:44:27, rsc wrote: > Thanks for fixing this. > > Please complete a ...
13 years, 4 months ago (2011-11-07 20:03:53 UTC) #8
rsc
LGTM
13 years, 4 months ago (2011-11-09 21:01:50 UTC) #9
rsc
13 years, 4 months ago (2011-11-09 21:01:57 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=6b38b2ad3d41 ***

cgo: print error instead of panic on undeclared enums/structs

Types are left as nil if no DWARF information is found and
checking in the rewriting pass so that appropriate errors
with line numbers can be printed.
Fixes issue 2408.

R=rsc
CC=golang-dev, remy
http://codereview.appspot.com/5336041

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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