c-parser.c (c_parser_postfix_expression): Convert operands of __builtin_complex to their semantic types.
* c-parser.c (c_parser_postfix_expression): Convert operands of __builtin_complex to their semantic types. From-SVN: r177915
This commit is contained in:
parent
54f6892e4b
commit
02ee3d3153
|
@ -1,3 +1,8 @@
|
|||
2011-08-19 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* c-parser.c (c_parser_postfix_expression): Convert operands of
|
||||
__builtin_complex to their semantic types.
|
||||
|
||||
2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR middle-end/49721
|
||||
|
|
|
@ -6428,7 +6428,13 @@ c_parser_postfix_expression (c_parser *parser)
|
|||
c_parser_skip_until_found (parser, CPP_CLOSE_PAREN,
|
||||
"expected %<)%>");
|
||||
mark_exp_read (e1.value);
|
||||
if (TREE_CODE (e1.value) == EXCESS_PRECISION_EXPR)
|
||||
e1.value = convert (TREE_TYPE (e1.value),
|
||||
TREE_OPERAND (e1.value, 0));
|
||||
mark_exp_read (e2.value);
|
||||
if (TREE_CODE (e2.value) == EXCESS_PRECISION_EXPR)
|
||||
e2.value = convert (TREE_TYPE (e2.value),
|
||||
TREE_OPERAND (e2.value, 0));
|
||||
if (!SCALAR_FLOAT_TYPE_P (TREE_TYPE (e1.value))
|
||||
|| DECIMAL_FLOAT_TYPE_P (TREE_TYPE (e1.value))
|
||||
|| !SCALAR_FLOAT_TYPE_P (TREE_TYPE (e2.value))
|
||||
|
|
Loading…
Reference in New Issue