[Bug fortran/69604] ICE in gfc_add_modify_loc, at fortran/trans.c:159

anlauf at gmx dot de gcc-bugzilla@gcc.gnu.org
Fri Mar 18 19:53:00 GMT 2016


Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
                 CC|                            |anlauf at gmx dot de

--- Comment #3 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Gerhard Steinmetz from comment #0)

Adding -std=f2008 to the command line gives additional hints
for the reasons of failure:

> $ cat z1.f90
> program p
>    x(n) = n()
>    print *, x(n)
> end


    x(n) = n()
Warning: Obsolescent feature: Statement function at (1)

    print *, x(n)

internal compiler error: in gfc_add_modify_loc, at fortran/trans.c:159
0x82f7280 gfc_add_modify_loc(unsigned int, stmtblock_t*, tree_node*,
0x82f72e9 gfc_add_modify(stmtblock_t*, tree_node*, tree_node*)
0x834d588 gfc_conv_statement_function
0x834d588 gfc_conv_function_expr

[traceback intentionally truncated]

and similarly for case z2, but not z4.

So z1 and z2 are possibly related, but not z4.

More information about the Gcc-bugs mailing list