X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fp-exp.y;h=f128fcb2f6cde3a03bc183687ea64a915346c9ae;hb=4753d33b404f07e749f648c57ae61e3984d40029;hp=0aa6f20e532afff4a76afc8aa8edb2450d87cd30;hpb=9c1877ead06db18e19614a598d1e280acb97e971;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/p-exp.y b/gdb/p-exp.y index 0aa6f20e53..f128fcb2f6 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -410,8 +410,8 @@ exp : type '(' exp ')' %prec UNARY { /* Allow automatic dereference of classes. */ if ((TYPE_CODE (current_type) == TYPE_CODE_PTR) - && (TYPE_CODE (TYPE_TARGET_TYPE (current_type)) == TYPE_CODE_CLASS) - && (TYPE_CODE ($1) == TYPE_CODE_CLASS)) + && (TYPE_CODE (TYPE_TARGET_TYPE (current_type)) == TYPE_CODE_STRUCT) + && (TYPE_CODE ($1) == TYPE_CODE_STRUCT)) write_exp_elt_opcode (pstate, UNOP_IND); } write_exp_elt_opcode (pstate, UNOP_CAST);