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
59e2e54e
Commit
59e2e54e
authored
Aug 22, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug195
R=ken OCL=33700 CL=33700
parent
e1c5d179
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
4 deletions
+1
-4
dcl.c
src/cmd/gc/dcl.c
+1
-1
bug195.go
test/fixedbugs/bug195.go
+0
-0
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