typeck.c: Remove DOS line endings.
2004-12-08 Kelley Cook <kcook@gcc.gnu.org> * typeck.c: Remove DOS line endings. From-SVN: r91919
This commit is contained in:
parent
323c74dacc
commit
8a21aa30d8
@ -1,3 +1,7 @@
|
||||
2004-12-08 Kelley Cook <kcook@gcc.gnu.org>
|
||||
|
||||
* typeck.c: Remove DOS line endings.
|
||||
|
||||
2004-12-08 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
||||
|
||||
PR c++/18100
|
||||
|
@ -3728,12 +3728,12 @@ build_unary_op (enum tree_code code, tree xarg, int noconvert)
|
||||
/* CONVERT_EXPR stands for unary plus in this context. */
|
||||
case CONVERT_EXPR:
|
||||
case NEGATE_EXPR:
|
||||
{
|
||||
int flags = WANT_ARITH | WANT_ENUM;
|
||||
/* Unary plus (but not unary minus) is allowed on pointers. */
|
||||
if (code == CONVERT_EXPR)
|
||||
flags |= WANT_POINTER;
|
||||
arg = build_expr_type_conversion (flags, arg, true);
|
||||
{
|
||||
int flags = WANT_ARITH | WANT_ENUM;
|
||||
/* Unary plus (but not unary minus) is allowed on pointers. */
|
||||
if (code == CONVERT_EXPR)
|
||||
flags |= WANT_POINTER;
|
||||
arg = build_expr_type_conversion (flags, arg, true);
|
||||
if (!arg)
|
||||
errstring = (code == NEGATE_EXPR
|
||||
? "wrong type argument to unary minus"
|
||||
|
Loading…
Reference in New Issue
Block a user