projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfea996
)
Fix handling of anonymous field in struct with pointer type.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 19 Jan 2011 15:47:50 +0000
(15:47 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 19 Jan 2011 15:47:50 +0000
(15:47 +0000)
From-SVN: r169001
gcc/go/gofrontend/types.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/types.cc
b/gcc/go/gofrontend/types.cc
index bbf217abacc08c04d84b73a12d494deb9cc12d86..1a68e77244098f1127319f1d01e8e07c2407ec6b 100644
(file)
--- a/
gcc/go/gofrontend/types.cc
+++ b/
gcc/go/gofrontend/types.cc
@@
-7948,7
+7948,9
@@
Type::find_field_or_method(const Type* type,
|| pf->type()->deref()->is_undefined())
continue;
- Named_type* fnt = pf->type()->deref()->named_type();
+ Named_type* fnt = pf->type()->named_type();
+ if (fnt == NULL)
+ fnt = pf->type()->deref()->named_type();
gcc_assert(fnt != NULL);
int sublevel = level == NULL ? 1 : *level + 1;