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



--- Comment #3 from janus at gcc dot gnu.org 2013-01-13 13:07:01 UTC ---

Apparently it is trivially fixed by this patch:



Index: gcc/fortran/expr.c

===================================================================

--- gcc/fortran/expr.c    (revision 195125)

+++ gcc/fortran/expr.c    (working copy)

@@ -1917,7 +1917,6 @@ gfc_simplify_expr (gfc_expr *p, int type)



     case EXPR_COMPCALL:

     case EXPR_PPC:

-      gcc_unreachable ();

       break;

     }





Reason: Usually gfc_simplify_expr is never called on EXPR_COMPCALL, because it

is transformed into EXPR_FUNCTION at resolution time.



In io.c (check_io_constraints), gfc_simplify_expr is already called at parsing

time (see backtrace).

Reply via email to