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

Issue 14920053: code review 14920053: cmd/gc: reject incorrect use of fallthrough. (Closed)

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

Description

cmd/gc: reject incorrect use of fallthrough. Fixes issue 6500.

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r 953e2b5ffd8c https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r c92f6dbc444a https://code.google.com/p/go #

Patch Set 7 : diff -r c92f6dbc444a https://code.google.com/p/go #

Patch Set 8 : diff -r c92f6dbc444a https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 9 : diff -r c92f6dbc444a https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 10 : diff -r ed439e0d72ae https://go.googlecode.com/hg/ #

Patch Set 11 : diff -r ed439e0d72ae https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -253 lines) Patch
M src/cmd/gc/go.y View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M src/cmd/gc/swt.c View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gc/y.tab.c View 1 2 3 4 5 222 chunks +254 lines, -252 lines 0 comments Download
A test/fixedbugs/issue6500.go View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 12
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
10 years, 6 months ago (2013-10-22 05:56:25 UTC) #1
rsc
Thanks, but let's wait until after Go 1.2. This is not going to cause problems ...
10 years, 6 months ago (2013-10-23 14:11:58 UTC) #2
remyoudompheng
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 4 months ago (2013-12-20 07:35:21 UTC) #3
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:26:08 UTC) #4
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:26:09 UTC) #5
rsc
Can we fix the problem without introducing a new syntax error? I've tried to be ...
10 years, 3 months ago (2014-01-07 02:00:13 UTC) #6
remyoudompheng
Hello golang-codereviews@googlegroups.com, rsc@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-11 00:10:21 UTC) #7
rsc
https://codereview.appspot.com/14920053/diff/190001/src/cmd/gc/swt.c File src/cmd/gc/swt.c (right): https://codereview.appspot.com/14920053/diff/190001/src/cmd/gc/swt.c#newcode331 src/cmd/gc/swt.c:331: yyerror("cannot fallthrough a closing brace"); it may be a ...
10 years, 2 months ago (2014-02-11 01:14:40 UTC) #8
remyoudompheng
Hello golang-codereviews@googlegroups.com, rsc@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-11 07:03:49 UTC) #9
remyoudompheng
ping
10 years, 2 months ago (2014-02-18 23:05:39 UTC) #10
rsc
LGTM https://codereview.appspot.com/14920053/diff/200001/test/fixedbugs/issue6500.go File test/fixedbugs/issue6500.go (right): https://codereview.appspot.com/14920053/diff/200001/test/fixedbugs/issue6500.go#newcode3 test/fixedbugs/issue6500.go:3: // Copyright 2013 The Go Authors. All rights ...
10 years, 2 months ago (2014-02-19 03:15:50 UTC) #11
remyoudompheng
10 years, 2 months ago (2014-02-19 06:55:08 UTC) #12
*** Submitted as https://code.google.com/p/go/source/detail?r=1b2554280cc6 ***

cmd/gc: reject incorrect use of fallthrough.

Fixes issue 6500.

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews
https://codereview.appspot.com/14920053

https://codereview.appspot.com/14920053/diff/200001/test/fixedbugs/issue6500.go
File test/fixedbugs/issue6500.go (right):

https://codereview.appspot.com/14920053/diff/200001/test/fixedbugs/issue6500....
test/fixedbugs/issue6500.go:3: // Copyright 2013 The Go Authors. All rights
reserved.
On 2014/02/19 03:15:51, rsc wrote:
> 2014

Done.
Sign in to reply to this message.

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