Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
c736b657
Commit
c736b657
authored
Oct 09, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug209
R=ken OCL=35546 CL=35546
parent
a14a8b27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/cmd/gc/typecheck.c
src/cmd/gc/typecheck.c
+1
-1
test/fixedbugs/bug209.go
test/fixedbugs/bug209.go
+1
-1
No files found.
src/cmd/gc/typecheck.c
View file @
c736b657
...
...
@@ -934,7 +934,7 @@ reswitch:
typechecklist
(
n
->
ninit
,
Etop
);
typecheck
(
&
n
->
ntest
,
Erv
);
if
(
n
->
ntest
!=
N
&&
(
t
=
n
->
ntest
->
type
)
!=
T
&&
t
->
etype
!=
TBOOL
)
yyerror
(
"non-bool %+N used as for condition"
);
yyerror
(
"non-bool %+N used as for condition"
,
n
->
ntest
);
typecheck
(
&
n
->
nincr
,
Etop
);
typechecklist
(
n
->
nbody
,
Etop
);
goto
ret
;
...
...
test/bugs/bug209.go
→
test/
fixed
bugs/bug209.go
View file @
c736b657
//
$G $D/$F.go || echo BUG: should compile
//
errchk $G $D/$F.go
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment