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

Issue 12822045: code review 12822045: cmd/gc: better error messages for C-style if statements. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by r
Modified:
12 years, 2 months ago
Reviewers:
dsymonds, dave, adg
CC:
golang-dev, adg
Visibility:
Public.

Description

cmd/gc: better error messages for C-style if statements. Given if (i == 0) x++ The old message was x.go:6: syntax error: unexpected semicolon or newline before { Now we see x.go:6: syntax error: missing { after if clause Fixes issue 5687

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+668 lines, -1272 lines) Patch
M src/cmd/gc/go.errors View 1 chunk +4 lines, -4 lines 0 comments Download
M src/cmd/gc/y.tab.h View 3 chunks +21 lines, -25 lines 0 comments Download
M src/cmd/gc/y.tab.c View 166 chunks +639 lines, -1239 lines 0 comments Download
M src/cmd/gc/yerr.h View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 11
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 2 months ago (2013-08-19 01:34:22 UTC) #1
r
Fixes issue 5687
12 years, 2 months ago (2013-08-19 01:35:31 UTC) #2
adg
LGTM But I'm getting "Can't parse the patch to chunks" trying to view y.tab.c, which ...
12 years, 2 months ago (2013-08-19 01:40:16 UTC) #3
r
i did another upload anyway.
12 years, 2 months ago (2013-08-19 01:49:27 UTC) #4
r
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 2 months ago (2013-08-19 01:49:54 UTC) #5
r
*** Submitted as https://code.google.com/p/go/source/detail?r=5f3eab224f84 *** cmd/gc: better error messages for C-style if statements. Given if ...
12 years, 2 months ago (2013-08-19 01:50:07 UTC) #6
adg
Wow, there's a significant change in y.tab.c because you're using bison 2.3, while the previous ...
12 years, 2 months ago (2013-08-19 01:56:24 UTC) #7
r
It shouldn't, but of course it might. If someone has 2.5 and wants to regenerate ...
12 years, 2 months ago (2013-08-19 02:35:55 UTC) #8
adg
I don't know the difference, but I too have 2.3 on my OS X 10.8.4 ...
12 years, 2 months ago (2013-08-19 02:41:27 UTC) #9
dsymonds
On 19 August 2013 12:35, Rob Pike <r@golang.org> wrote: > It shouldn't, but of course ...
12 years, 2 months ago (2013-08-19 02:44:56 UTC) #10
dave_cheney.net
12 years, 2 months ago (2013-08-19 02:47:35 UTC) #11
Nice. 

On 19/08/2013, at 11:50, r@golang.org wrote:

> *** Submitted as
> https://code.google.com/p/go/source/detail?r=5f3eab224f84 ***
> 
> cmd/gc: better error messages for C-style if statements.
> Given
>        if (i == 0)
>                x++
> The old message was
>        x.go:6: syntax error: unexpected semicolon or newline before {
> Now we see
>        x.go:6: syntax error: missing { after if clause
> 
> Fixes issue 5687
> 
> R=golang-dev, adg
> CC=golang-dev
> https://codereview.appspot.com/12822045
> 
> 
> https://codereview.appspot.com/12822045/
> 
> -- 
> 
> ---You received this message because you are subscribed to the Google Groups
"golang-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to golang-dev+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Sign in to reply to this message.

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