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
e7f9452d
Commit
e7f9452d
authored
Sep 29, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing error checking related to ([...]int){...}
R=ken OCL=35132 CL=35132
parent
08eefec9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/cmd/gc/dcl.c
src/cmd/gc/dcl.c
+1
-1
src/cmd/gc/typecheck.c
src/cmd/gc/typecheck.c
+5
-0
No files found.
src/cmd/gc/dcl.c
View file @
e7f9452d
...
...
@@ -323,7 +323,7 @@ variter(NodeList *vl, Node *t, NodeList *el)
declare
(
v
,
dclcontext
);
v
->
ntype
=
t
;
if
(
e
!=
N
||
funcdepth
>
0
)
{
if
(
e
!=
N
||
funcdepth
>
0
||
isblank
(
v
)
)
{
if
(
funcdepth
>
0
)
init
=
list
(
init
,
nod
(
ODCL
,
v
,
N
));
e
=
nod
(
OAS
,
v
,
e
);
...
...
src/cmd/gc/typecheck.c
View file @
e7f9452d
...
...
@@ -1010,6 +1010,11 @@ ret:
case
TNIL
:
case
TBLANK
:
break
;
case
TARRAY
:
if
(
t
->
bound
==
-
100
)
{
yyerror
(
"use of [...] array outside of array literal"
);
t
->
bound
=
1
;
}
default:
checkwidth
(
t
);
}
...
...
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