Index: valarith.c =================================================================== RCS file: /cvs/src/src/gdb/valarith.c,v retrieving revision 1.103 diff -u -p -r1.103 valarith.c --- valarith.c 18 May 2012 21:02:50 -0000 1.103 +++ valarith.c 8 Jun 2012 19:03:23 -0000 @@ -279,7 +279,7 @@ binop_types_user_defined_p (enum exp_opc if (TYPE_CODE (type1) == TYPE_CODE_REF) type1 = check_typedef (TYPE_TARGET_TYPE (type1)); - type2 = check_typedef (type1); + type2 = check_typedef (type2); if (TYPE_CODE (type2) == TYPE_CODE_REF) type2 = check_typedef (TYPE_TARGET_TYPE (type2));