typeck.c (259948) | typeck.c (260012) |
---|---|
1/* Build expressions with type checking for C++ compiler. 2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4 Hacked by Michael Tiemann (tiemann@cygnus.com) 5 6This file is part of GCC. 7 8GCC is free software; you can redistribute it and/or modify --- 3093 unchanged lines hidden (view full) --- 3102 avoid reporting another error. */ 3103 3104 if (code0 == ERROR_MARK || code1 == ERROR_MARK) 3105 return error_mark_node; 3106 3107 if ((invalid_op_diag 3108 = targetm.invalid_binary_op (code, type0, type1))) 3109 { | 1/* Build expressions with type checking for C++ compiler. 2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4 Hacked by Michael Tiemann (tiemann@cygnus.com) 5 6This file is part of GCC. 7 8GCC is free software; you can redistribute it and/or modify --- 3093 unchanged lines hidden (view full) --- 3102 avoid reporting another error. */ 3103 3104 if (code0 == ERROR_MARK || code1 == ERROR_MARK) 3105 return error_mark_node; 3106 3107 if ((invalid_op_diag 3108 = targetm.invalid_binary_op (code, type0, type1))) 3109 { |
3110 error (invalid_op_diag); | 3110 error (invalid_op_diag, ""); |
3111 return error_mark_node; 3112 } 3113 3114 switch (code) 3115 { 3116 case MINUS_EXPR: 3117 /* Subtraction of two similar pointers. 3118 We must subtract them as integers, then divide by object size. */ --- 910 unchanged lines hidden (view full) --- 4029 return error_mark_node; 4030 4031 if ((invalid_op_diag 4032 = targetm.invalid_unary_op ((code == UNARY_PLUS_EXPR 4033 ? CONVERT_EXPR 4034 : code), 4035 TREE_TYPE (xarg)))) 4036 { | 3111 return error_mark_node; 3112 } 3113 3114 switch (code) 3115 { 3116 case MINUS_EXPR: 3117 /* Subtraction of two similar pointers. 3118 We must subtract them as integers, then divide by object size. */ --- 910 unchanged lines hidden (view full) --- 4029 return error_mark_node; 4030 4031 if ((invalid_op_diag 4032 = targetm.invalid_unary_op ((code == UNARY_PLUS_EXPR 4033 ? CONVERT_EXPR 4034 : code), 4035 TREE_TYPE (xarg)))) 4036 { |
4037 error (invalid_op_diag); | 4037 error (invalid_op_diag, ""); |
4038 return error_mark_node; 4039 } 4040 4041 switch (code) 4042 { 4043 case UNARY_PLUS_EXPR: 4044 case NEGATE_EXPR: 4045 { --- 3003 unchanged lines hidden --- | 4038 return error_mark_node; 4039 } 4040 4041 switch (code) 4042 { 4043 case UNARY_PLUS_EXPR: 4044 case NEGATE_EXPR: 4045 { --- 3003 unchanged lines hidden --- |