Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
31c07dfd
Commit
31c07dfd
authored
Jul 15, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc: issue 901
Fixes #901. R=ken2 CC=golang-dev
https://golang.org/cl/1674049
parent
08a263a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
walk.c
src/cmd/gc/walk.c
+7
-0
No files found.
src/cmd/gc/walk.c
View file @
31c07dfd
...
...
@@ -281,6 +281,13 @@ walkdef(Node *n)
if
(
n
->
defn
==
N
)
{
if
(
n
->
etype
!=
0
)
// like OPRINTN
break
;
if
(
nerrors
>
0
)
{
// Can have undefined variables in x := foo
// that make x have an n->ndefn == nil.
// If there are other errors anyway, don't
// bother adding to the noise.
break
;
}
fatal
(
"var without type, init: %S"
,
n
->
sym
);
}
if
(
n
->
defn
->
op
==
ONAME
)
{
...
...
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