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
a1b64821
Commit
a1b64821
authored
Jul 07, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug167
R=ken OCL=31295 CL=31295
parent
80e4a053
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
9 deletions
+4
-9
dcl.c
src/cmd/gc/dcl.c
+3
-2
go.c
src/cmd/ld/go.c
+1
-1
bug167.go
test/fixedbugs/bug167.go
+0
-0
golden.out
test/golden.out
+0
-6
No files found.
src/cmd/gc/dcl.c
View file @
a1b64821
...
...
@@ -104,7 +104,7 @@ void
updatetype
(
Type
*
n
,
Type
*
t
)
{
Sym
*
s
;
int
local
;
int
local
,
vargen
;
int
maplineno
,
lno
,
etype
;
s
=
n
->
sym
;
...
...
@@ -141,13 +141,14 @@ updatetype(Type *n, Type *t)
// that is no longer associated with n.
maplineno
=
n
->
maplineno
;
local
=
n
->
local
;
vargen
=
n
->
vargen
;
*
n
=
*
t
;
n
->
sym
=
s
;
n
->
local
=
local
;
n
->
siggen
=
0
;
n
->
printed
=
0
;
n
->
method
=
nil
;
n
->
vargen
=
0
;
n
->
vargen
=
vargen
;
n
->
nod
=
N
;
// catch declaration of incomplete type
...
...
src/cmd/ld/go.c
View file @
a1b64821
...
...
@@ -200,7 +200,7 @@ loadpkgdata(char *file, char *data, int len)
}
else
if
((
ndef
=
forwardfix
(
x
->
def
,
def
))
!=
nil
)
{
x
->
def
=
ndef
;
}
else
{
fprint
(
2
,
"%
d
: conflicting definitions for %s
\n
"
,
argv0
,
name
);
fprint
(
2
,
"%
s
: conflicting definitions for %s
\n
"
,
argv0
,
name
);
fprint
(
2
,
"%s:
\t
%s %s %s
\n
"
,
x
->
file
,
x
->
prefix
,
name
,
x
->
def
);
fprint
(
2
,
"%s:
\t
%s %s %s
\n
"
,
file
,
prefix
,
name
,
def
);
nerrors
++
;
...
...
test/bugs/bug167.go
→
test/
fixed
bugs/bug167.go
View file @
a1b64821
File moved
test/golden.out
View file @
a1b64821
...
...
@@ -105,12 +105,6 @@ BUG: bug159
123
BUG: should fail
=========== bugs/bug167.go
BUG: bug167
1606416656: conflicting definitions for main.T·bug167
bug167.6: type main.T·bug167 struct { x int }
bug167.6: type main.T·bug167 struct { x float }
=========== 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