* ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
[deliverable/binutils-gdb.git] / gdb / ada-lang.c
index 5b687e342127b3f111ee01e88eb50c50b4fb1f4e..706806efac427851018cfef61d554bc84646fb53 100644 (file)
@@ -8578,7 +8578,7 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp,
       if (noside == EVAL_SKIP)
         goto nosideret;
       else if (noside == EVAL_AVOID_SIDE_EFFECTS)
-        return allocate_value (builtin_type_void);
+        return allocate_value (exp->elts[pc + 1].type);
       else
         error (_("Attempt to use a type name as an expression"));
 
This page took 0.027521 seconds and 4 git commands to generate.