* ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
to make sure we try to get the modulus of the actual type, not the associated typedef.
This commit is contained in:
parent
5bc23cb38a
commit
31dedfee60
@ -1,3 +1,9 @@
|
||||
2009-03-23 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
|
||||
to make sure we try to get the modulus of the actual type, not the
|
||||
associated typedef.
|
||||
|
||||
2009-03-23 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
|
||||
|
@ -9010,7 +9010,7 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp,
|
||||
|
||||
case OP_ATR_MODULUS:
|
||||
{
|
||||
struct type *type_arg = exp->elts[pc + 2].type;
|
||||
struct type *type_arg = check_typedef (exp->elts[pc + 2].type);
|
||||
evaluate_subexp (NULL_TYPE, exp, pos, EVAL_SKIP);
|
||||
|
||||
if (noside == EVAL_SKIP)
|
||||
|
Loading…
Reference in New Issue
Block a user