diff options
-rw-r--r-- | gcc/fortran/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/fortran/trans-const.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index d91bdbf..15f828d 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +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, diff --git a/gcc/fortran/trans-const.c b/gcc/fortran/trans-const.c index 7388853..382bbbe 100644 --- a/gcc/fortran/trans-const.c +++ b/gcc/fortran/trans-const.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: { |