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
b3f303ec
Commit
b3f303ec
authored
May 27, 2009
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 153
R=r OCL=29479 CL=29479
parent
c4a74b0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
src/cmd/gc/walk.c
src/cmd/gc/walk.c
+6
-1
test/fixedbugs/bug153.go
test/fixedbugs/bug153.go
+0
-0
test/golden.out
test/golden.out
+0
-4
No files found.
src/cmd/gc/walk.c
View file @
b3f303ec
...
...
@@ -1945,8 +1945,13 @@ mkdotargs(Node *r, Node *rr, Iter *saver, Node *nn, Type *l, int fp)
st
=
typ
(
TSTRUCT
);
// generated structure
ft
=
T
;
// last field
while
(
r
!=
N
)
{
if
(
r
->
op
==
OLITERAL
&&
r
->
val
.
ctype
==
CTNIL
)
{
if
(
r
->
type
==
T
||
r
->
type
->
etype
==
TNIL
)
{
yyerror
(
"inappropriate use of nil in ... argument"
);
return
N
;
}
}
defaultlit
(
r
,
T
);
if
(
r
->
type
==
T
)
// type check failed
return
N
;
...
...
test/bugs/bug153.go
→
test/
fixed
bugs/bug153.go
View file @
b3f303ec
File moved
test/golden.out
View file @
b3f303ec
...
...
@@ -108,10 +108,6 @@ BUG: should crash
bugs/bug149.go:14: cannot convert []uint8 constant to string
BUG: should compile
=========== bugs/bug153.go
BUG: errchk: bugs/bug153.go:9: error message does not match 'nil'
bugs/bug153.go:9: fatal error: dowidth: unknown type: E-34
=========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: constant -3 overflows uint
...
...
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