* ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs

before looking up the fields inside our struct type.
This commit is contained in:
Joel Brobecker 2009-03-24 02:08:23 +00:00
parent 17466c1a8a
commit 6cdd57f45d
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-03-23 Joel Brobecker <brobecker@adacore.com>
* ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
before looking up the fields inside our struct type.
2009-03-23 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before

View File

@ -1207,6 +1207,7 @@ get_symbol_field_type (struct symbol *sym, char *encoded_field_name)
if (type == NULL || field_name == NULL)
return NULL;
type = check_typedef (type);
while (field_name[0] != '\0')
{