From 5e3b87274d2e559eb5df85800069edee8f647f2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Schl=C3=BCter?= Date: Sun, 16 Jan 2005 17:05:46 +0100 Subject: [PATCH] trans-types.c (gfc_get_character_type_len): : Use gfc_charlen_type_node as basic type for the range field. * trans-types.c (gfc_get_character_type_len): : Use gfc_charlen_type_node as basic type for the range field. From-SVN: r93729 --- gcc/fortran/ChangeLog | 3 +++ gcc/fortran/trans-types.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index cc89f45c8097..d9c65b00aec3 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -4,6 +4,9 @@ unsigned issue. Use build_int_cst instead of converting integer_zero_node. Remove unnecessary conversion. + * trans-types.c (gfc_get_character_type_len): : Use + gfc_charlen_type_node as basic type for the range field. + 2005-01-16 Steven G. Kargl PR 19168 diff --git a/gcc/fortran/trans-types.c b/gcc/fortran/trans-types.c index 019986e3dbb8..34aace2996ab 100644 --- a/gcc/fortran/trans-types.c +++ b/gcc/fortran/trans-types.c @@ -580,7 +580,7 @@ gfc_get_character_type_len (int kind, tree len) gfc_validate_kind (BT_CHARACTER, kind, false); - bounds = build_range_type (gfc_array_index_type, gfc_index_one_node, len); + bounds = build_range_type (gfc_charlen_type_node, gfc_index_one_node, len); type = build_array_type (gfc_character1_type_node, bounds); TYPE_STRING_FLAG (type) = 1; -- 2.47.2