Commit 0ca82dd6 by Ian Lance Taylor

Fix handling of anonymous field in struct with pointer type.

From-SVN: r169001
parent cfea9968
...@@ -7948,7 +7948,9 @@ Type::find_field_or_method(const Type* type, ...@@ -7948,7 +7948,9 @@ Type::find_field_or_method(const Type* type,
|| pf->type()->deref()->is_undefined()) || pf->type()->deref()->is_undefined())
continue; 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); gcc_assert(fnt != NULL);
int sublevel = level == NULL ? 1 : *level + 1; int sublevel = level == NULL ? 1 : *level + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment