[Bug fortran/89077] ICE using * as len specifier for character parameter

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 3 22:25:00 GMT 2019


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

--- Comment #21 from anlauf at gcc dot gnu.org ---
Author: anlauf
Date: Sun Mar  3 22:24:00 2019
New Revision: 269357

URL: https://gcc.gnu.org/viewcvs?rev=269357&root=gcc&view=rev
Log:
2019-03-03  Harald Anlauf  <anlauf@gmx.de>

        Backport from trunk
        PR fortran/89077
        * decl.c (gfc_set_constant_character_len): Clear original string
        representation after padding has been performed to target length.
        * resolve.c (gfc_resolve_substring_charlen): Check substring
        length for constantness prior to general calculation of length.

        Backport from trunk
        PR fortran/89077
        * gfortran.dg/transfer_simplify_12.f90: New test.
        * gfortran.dg/substr_simplify.f90: New test.


Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/substr_simplify.f90
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/transfer_simplify_12.f90
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/decl.c
    branches/gcc-8-branch/gcc/fortran/resolve.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list