Commit e6ef7325 by Tobias Burnus Committed by Tobias Burnus

re PR fortran/34186 (dump-parse-tree: ICE for ts->cl->length, if ts->cl == NULL)

2007-11-30  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34186
        * symbol.c (generate_isocbinding_symbol): Set string length.
        * dump-parse-tree.c (gfc_show_attr): Show BIND(C) attribute.
        * misc.c (gfc_basic_typename): Handle BT_VOID.

From-SVN: r130534
parent 89ab8ba0
2007-11-30 Tobias Burnus <burnus@net-b.de>
PR fortran/34186
* symbol.c (generate_isocbinding_symbol): Set string length.
* dump-parse-tree.c (gfc_show_attr): Show BIND(C) attribute.
* misc.c (gfc_basic_typename): Handle BT_VOID.
2007-11-29 Steven G. Kargl <kargls@comcast.net>
PR fortran/34230
......
......@@ -582,6 +582,8 @@ gfc_show_attr (symbol_attribute *attr)
gfc_status (" RESULT");
if (attr->entry)
gfc_status (" ENTRY");
if (attr->is_bind_c)
gfc_status (" BIND(C)");
if (attr->data)
gfc_status (" DATA");
......
......@@ -139,6 +139,9 @@ gfc_basic_typename (bt type)
case BT_PROCEDURE:
p = "PROCEDURE";
break;
case BT_VOID:
p = "VOID";
break;
case BT_UNKNOWN:
p = "UNKNOWN";
break;
......
......@@ -3810,6 +3810,8 @@ generate_isocbinding_symbol (const char *mod_name, iso_c_binding_symbol s,
tmp_sym->value->value.character.string[0]
= (char) c_interop_kinds_table[s].value;
tmp_sym->value->value.character.string[1] = '\0';
tmp_sym->value->ts.cl = gfc_get_charlen ();
tmp_sym->value->ts.cl->length = gfc_int_expr (1);
/* May not need this in both attr and ts, but do need in
attr for writing module file. */
......
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