This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/77694] ICE in optimize_binop_array_assignment, at fortran/frontend-passes.c:1080


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77694

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu.org

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Hi Steve,

> Index: frontend-passes.c
> ===================================================================
> --- frontend-passes.c	(revision 240220)
> +++ frontend-passes.c	(working copy)
> @@ -1076,6 +1076,9 @@ optimize_binop_array_assignment (gfc_cod
>  {
>    gfc_expr *e;
>  
> +  if (!*rhs)
> +    return false;
> +
>    e = *rhs;
>    if (e->expr_type == EXPR_OP)
>      {

OK for trunk (alternatively, obvious :-).

Thanks!

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]