http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49213

--- Comment #19 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Note that the patch in comment #10 no longer applies cleanly due to revision
197053:

@@ -6013,7 +5786,7 @@
       gfc_add_expr_to_block (&block, tmp);
     }
     }
-  else if (expr->ts.type == BT_DERIVED)
+  else if (expr->ts.type == BT_DERIVED && expr->ts.f90_type != BT_VOID)
     {
       if (expr->expr_type != EXPR_STRUCTURE)
     {

Reply via email to