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
4efad58d
Commit
4efad58d
authored
Jan 26, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug133
R=ken OCL=23528 CL=23528
parent
9ed2960d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
10 deletions
+21
-10
src/cmd/gc/dcl.c
src/cmd/gc/dcl.c
+1
-1
src/cmd/gc/go.h
src/cmd/gc/go.h
+1
-0
src/cmd/gc/go.y
src/cmd/gc/go.y
+14
-6
test/fixedbugs/bug133.dir/bug0.go
test/fixedbugs/bug133.dir/bug0.go
+0
-0
test/fixedbugs/bug133.dir/bug1.go
test/fixedbugs/bug133.dir/bug1.go
+0
-0
test/fixedbugs/bug133.dir/bug2.go
test/fixedbugs/bug133.dir/bug2.go
+0
-0
test/fixedbugs/bug133.go
test/fixedbugs/bug133.go
+0
-0
test/golden.out
test/golden.out
+5
-3
No files found.
src/cmd/gc/dcl.c
View file @
4efad58d
...
...
@@ -517,7 +517,7 @@ loop:
f
->
embedded
=
n
->
embedded
;
f
->
sym
=
f
->
nname
->
sym
;
if
(
pkgimportname
!=
S
&&
!
exportname
(
f
->
sym
->
name
))
f
->
sym
=
pkglookup
(
f
->
sym
->
name
,
pkg
importname
->
name
);
f
->
sym
=
pkglookup
(
f
->
sym
->
name
,
pkg
context
);
}
*
t
=
f
;
...
...
src/cmd/gc/go.h
View file @
4efad58d
...
...
@@ -504,6 +504,7 @@ EXTERN Node* fskel;
EXTERN
Node
*
addtop
;
EXTERN
char
*
context
;
EXTERN
char
*
pkgcontext
;
EXTERN
int
thechar
;
EXTERN
char
*
thestring
;
EXTERN
char
*
hunk
;
...
...
src/cmd/gc/go.y
View file @
4efad58d
...
...
@@ -80,7 +80,7 @@
%
type
<
node
>
hidden_interfacedcl_list
ohidden_interfacedcl_list
hidden_interfacedcl_list_r
%
type
<
node
>
hidden_interfacedcl
%
type
<
node
>
hidden_funarg_list
ohidden_funarg_list
hidden_funarg_list_r
%
type
<
node
>
hidden_funres
ohidden_funres
hidden_importsym
%
type
<
node
>
hidden_funres
ohidden_funres
hidden_importsym
hidden_pkg_importsym
%
left
LOROR
%
left
LANDAND
...
...
@@ -1730,23 +1730,23 @@ oliteral:
hidden_import
:
LPACKAGE
sym1
/*
variables
*/
|
LVAR
hidden_importsym
hidden_type
|
LVAR
hidden_
pkg_
importsym
hidden_type
{
importvar
($
2
,
$
3
);
}
|
LCONST
hidden_importsym
'='
hidden_constant
|
LCONST
hidden_
pkg_
importsym
'='
hidden_constant
{
importconst
($
2
,
T
,
&$
4
);
}
|
LCONST
hidden_importsym
hidden_type
'='
hidden_constant
|
LCONST
hidden_
pkg_
importsym
hidden_type
'='
hidden_constant
{
importconst
($
2
,
$
3
,
&$
5
);
}
|
LTYPE
hidden_importsym
hidden_type
|
LTYPE
hidden_
pkg_
importsym
hidden_type
{
importtype
($
2
,
$
3
);
}
|
LFUNC
hidden_importsym
'('
ohidden_funarg_list
')'
ohidden_funres
|
LFUNC
hidden_
pkg_
importsym
'('
ohidden_funarg_list
')'
ohidden_funres
{
importvar
($
2
,
functype
(
N
,
$
4
,
$
6
));
}
...
...
@@ -1920,6 +1920,14 @@ hidden_importsym:
$$->
sym
=
$
3
;
}
hidden_pkg_importsym
:
hidden_importsym
{
$$
=
$
1
;
pkgcontext
=
$$->
psym
->
name
;
}
/*
*
helpful
error
messages
.
*
THIS
SECTION
MUST
BE
AT
THE
END
OF
THE
FILE
.
...
...
test/bugs/bug133.dir/bug0.go
→
test/
fixed
bugs/bug133.dir/bug0.go
View file @
4efad58d
File moved
test/bugs/bug133.dir/bug1.go
→
test/
fixed
bugs/bug133.dir/bug1.go
View file @
4efad58d
File moved
test/bugs/bug133.dir/bug2.go
→
test/
fixed
bugs/bug133.dir/bug2.go
View file @
4efad58d
File moved
test/bugs/bug133.go
→
test/
fixed
bugs/bug133.go
View file @
4efad58d
File moved
test/golden.out
View file @
4efad58d
...
...
@@ -181,9 +181,6 @@ BUG: should not compile
=========== bugs/bug132.go
BUG: compilation succeeds incorrectly
=========== bugs/bug133.go
BUG: succeeds incorrectly
=========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: overflow converting constant to uint
...
...
@@ -302,3 +299,8 @@ SIGSEGV: segmentation violation
Faulting address: 0x0
pc: xxx
=========== fixedbugs/bug133.go
fixedbugs/bug133.dir/bug2.go:11: undefined DOT i on bug0.T
fixedbugs/bug133.dir/bug2.go:11: illegal types for operand: RETURN
int
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