[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

jb at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 1 19:47:00 GMT 2018


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

--- Comment #11 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Thu Feb  1 19:47:15 2018
New Revision: 257310

URL: https://gcc.gnu.org/viewcvs?rev=257310&root=gcc&view=rev
Log:
PR 83975 Associate target with non-constant character length

When associating a variable of type character, if the length of the
target isn't known at compile time, generate an error. See PR 83344
for more details.

Regtested on x86_64-pc-linux-gnu.

gcc/fortran/ChangeLog:

2018-02-01  Janne Blomqvist  <jb@gcc.gnu.org>

        PR 83975
        PR 83344
        * resolve.c (resolve_assoc_var): Generate an error if
        target length unknown.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c


More information about the Gcc-bugs mailing list