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
59e2e54e
Commit
59e2e54e
authored
Aug 21, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug195
R=ken OCL=33700 CL=33700
parent
e1c5d179
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
4 deletions
+1
-4
src/cmd/gc/dcl.c
src/cmd/gc/dcl.c
+1
-1
test/fixedbugs/bug195.go
test/fixedbugs/bug195.go
+0
-0
test/golden.out
test/golden.out
+0
-3
No files found.
src/cmd/gc/dcl.c
View file @
59e2e54e
...
...
@@ -808,7 +808,7 @@ stotype(NodeList *l, int et, Type **t)
if
(
et
==
TINTER
&&
n
->
left
==
N
)
{
// embedded interface - inline the methods
if
(
n
->
type
->
etype
!=
TINTER
)
{
yyerror
(
"interface contains embedded non-interface %T"
,
t
);
yyerror
(
"interface contains embedded non-interface %T"
,
n
->
type
);
continue
;
}
for
(
t1
=
n
->
type
->
type
;
t1
!=
T
;
t1
=
t1
->
down
)
{
...
...
test/bugs/bug195.go
→
test/
fixed
bugs/bug195.go
View file @
59e2e54e
File moved
test/golden.out
View file @
59e2e54e
...
...
@@ -178,9 +178,6 @@ errchk: bugs/bug193.go:14: missing expected error: 'shift'
bugs/bug194.go:15: array index must be non-negative integer constant
BUG should compile and run
=========== bugs/bug195.go
bugs/bug195.go:9: BUG: errchk: compiler crashed
=========== bugs/bug196.go
too many calls: 5
panic PC=xxx
...
...
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