* c-lang.c (evaluate_subexp_c): Call check_typedef.

This commit is contained in:
Tom Tromey 2009-03-21 00:46:17 +00:00
parent ced4bf0cb4
commit 546e879ee8
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-03-20 Tom Tromey <tromey@redhat.com>
* c-lang.c (evaluate_subexp_c): Call check_typedef.
2009-03-20 Tom Tromey <tromey@redhat.com>
Julian Brown <julian@codesourcery.com>

View File

@ -917,6 +917,10 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp,
default:
internal_error (__FILE__, __LINE__, "unhandled c_string_type");
}
/* Ensure TYPE_LENGTH is valid for TYPE. */
check_typedef (type);
dest_charset = charset_for_string_type (dest_type);
++*pos;