mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 18:20:12 +08:00
PR c++/9197:
* opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use value_struct_elt, not lookup_struct_elt_type. * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT, STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type. * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment. gdb/testsuite * gdb.cp/m-static.exp: Add constructor ptype tests. * gdb.cp/m-static.cc (single_constructor): New class. (main): Make instance of single_constructor.
This commit is contained in:
@ -1035,15 +1035,10 @@ Cannot perform conditional operation on vectors with different sizes"));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (noside == EVAL_AVOID_SIDE_EFFECTS)
|
||||
return
|
||||
value_zero (lookup_struct_elt_type
|
||||
(value_type (arg1),&exp->elts[pc + 2].string, 0),
|
||||
lval_memory);
|
||||
else
|
||||
return value_struct_elt (&arg1, NULL,
|
||||
&exp->elts[pc + 2].string, NULL,
|
||||
"structure");
|
||||
/* Also handle EVAL_AVOID_SIDE_EFFECTS. */
|
||||
return value_struct_elt (&arg1, NULL,
|
||||
&exp->elts[pc + 2].string, NULL,
|
||||
"structure");
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
Reference in New Issue
Block a user