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

--- Comment #18 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Mark Eggleston
<markeggles...@gcc.gnu.org>:

https://gcc.gnu.org/g:a7fd43c38f7469a3ef5ee30e889d60e1376d4dfc

commit r11-665-ga7fd43c38f7469a3ef5ee30e889d60e1376d4dfc
Author: Mark Eggleston <markeggles...@gcc.gnu.org>
Date:   Thu May 7 08:15:26 2020 +0100

    Fortran  : ICE in gfc_trans_label_assign PR50392

    A function may contain an assigned goto.  If the the return variable
    is an integer a statement can be assigned to it.  Prior to this fix
    this resulted in an ICE.

    2020-05-27  Tobias Burnus  <tob...@codesourcery.com>

    gcc/fortran/

            PR fortran/50392
            * trans-decl.c (gfc_get_symbol_decl): Remove unnecessary block
            delimiters.  Add auxiliary variables if a label is assigned to
            a return variable. (gfc_gat_fake_result): If the symbol has an
            assign attribute set declaration from the symbol's backend
            declaration.

    2020-05-27  Mark Eggleston  <markeggles...@gnu.gcc.org>

    gcc/testsuite/

            PR fortran/50392
            * gfortran.dg/pr50392.f: New test.

Reply via email to