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/64933] ASSOCIATE on a character variable does not allow substring expressions


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

--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Fri Nov  4 19:23:44 2016
New Revision: 241860

URL: https://gcc.gnu.org/viewcvs?rev=241860&root=gcc&view=rev
Log:
2016-04-19  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/64933
        * primary.c (gfc_match_varspec): If selector expression is
        unambiguously an array, make sure that the associate name
        is an array and has an array spec. Modify the original
        condition for doing this to exclude character types.

2016-04-19  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/64933
        * gfortran.dg/associate_23.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/associate_23.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/primary.c
    trunk/gcc/testsuite/ChangeLog

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