Commit 6ba692b4 by Tobias Schlüter Committed by Tobias Schlüter

re PR middle-end/19543 ([4.1 only] fortran LOGICAL*8 not consistently…

re PR middle-end/19543 ([4.1 only] fortran LOGICAL*8 not consistently distinguished from 32 bit integers)

PR fortran/19543
* trans-const.c (gfc_conv_constant_to_tree): Give logical
constants the correct type.

From-SVN: r94054
parent 41bd881c
2005-01-22 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/19543
* trans-const.c (gfc_conv_constant_to_tree): Give logical
constants the correct type.
2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
* arith.c, array.c, check.c, decl.c, expr.c, f95-lang.c,
......
......@@ -306,7 +306,8 @@ gfc_conv_constant_to_tree (gfc_expr * expr)
return gfc_conv_mpfr_to_tree (expr->value.real, expr->ts.kind);
case BT_LOGICAL:
return build_int_cst (NULL_TREE, expr->value.logical);
return build_int_cst (gfc_get_logical_type (expr->ts.kind),
expr->value.logical);
case BT_COMPLEX:
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment