Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
7e03f004
Commit
7e03f004
authored
Nov 10, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reflect: Fix bug comparing struct field types.
From-SVN: r193395
parent
c76b1db6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
libgo/go/reflect/type.go
+14
-3
No files found.
libgo/go/reflect/type.go
View file @
7e03f004
...
@@ -363,7 +363,7 @@ type Method struct {
...
@@ -363,7 +363,7 @@ type Method struct {
// PkgPath is the package path that qualifies a lower case (unexported)
// PkgPath is the package path that qualifies a lower case (unexported)
// method name. It is empty for upper case (exported) method names.
// method name. It is empty for upper case (exported) method names.
// The combination of PkgPath and Name uniquely identifies a method
// The combination of PkgPath and Name uniquely identifies a method
// in a method set.
// in a method set.
// See http://golang.org/ref/spec#Uniqueness_of_identifiers
// See http://golang.org/ref/spec#Uniqueness_of_identifiers
Name
string
Name
string
PkgPath
string
PkgPath
string
...
@@ -1309,8 +1309,19 @@ func haveIdenticalUnderlyingType(T, V *commonType) bool {
...
@@ -1309,8 +1309,19 @@ func haveIdenticalUnderlyingType(T, V *commonType) bool {
for
i
:=
range
t
.
fields
{
for
i
:=
range
t
.
fields
{
tf
:=
&
t
.
fields
[
i
]
tf
:=
&
t
.
fields
[
i
]
vf
:=
&
v
.
fields
[
i
]
vf
:=
&
v
.
fields
[
i
]
if
tf
.
name
!=
vf
.
name
||
tf
.
pkgPath
!=
vf
.
pkgPath
||
if
tf
.
name
!=
vf
.
name
&&
(
tf
.
name
==
nil
||
vf
.
name
==
nil
||
*
tf
.
name
!=
*
vf
.
name
)
{
tf
.
typ
!=
vf
.
typ
||
tf
.
tag
!=
vf
.
tag
||
tf
.
offset
!=
vf
.
offset
{
return
false
}
if
tf
.
pkgPath
!=
vf
.
pkgPath
&&
(
tf
.
pkgPath
==
nil
||
vf
.
pkgPath
==
nil
||
*
tf
.
pkgPath
!=
*
vf
.
pkgPath
)
{
return
false
}
if
tf
.
typ
!=
vf
.
typ
{
return
false
}
if
tf
.
tag
!=
vf
.
tag
&&
(
tf
.
tag
==
nil
||
vf
.
tag
==
nil
||
*
tf
.
tag
!=
*
vf
.
tag
)
{
return
false
}
if
tf
.
offset
!=
vf
.
offset
{
return
false
return
false
}
}
}
}
...
...
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