This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33097] Function decl trees without proper argument list
- From: "asl at math dot spbu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2007 16:46:51 -0000
- Subject: [Bug fortran/33097] Function decl trees without proper argument list
- References: <bug-33097-14919@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from asl at math dot spbu dot ru 2007-08-20 16:46 -------
Ooops, attached patch is not complete. I also need:
diff --git a/gcc/fortran/trans-types.c b/gcc/fortran/trans-types.c
--- a/gcc/fortran/trans-types.c
+++ b/gcc/fortran/trans-types.c
@@ -1027,7 +1027,7 @@ gfc_get_nodesc_array_type (tree etype, gfc_array_spec *
as, int packed)
GFC_TYPE_ARRAY_STRIDE (type, n) = tmp;
expr = as->lower[n];
- if (expr->expr_type == EXPR_CONSTANT)
+ if (expr && expr->expr_type == EXPR_CONSTANT)
{
tmp = gfc_conv_mpz_to_tree (expr->value.integer,
gfc_index_integer_kind);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33097